Skip to content

Commit

Permalink
chore: update dockerfile and add swift release
Browse files Browse the repository at this point in the history
  • Loading branch information
sashatalalasha committed Mar 13, 2024
1 parent ce6e593 commit d6d3c36
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ RUN gem install bundler -v 2.3.26 && \
apt-get install -y --no-install-recommends ruby-dev=1:2.7+2

# swift

RUN apt-get -y install libncurses5 clang

RUN apt-get -y install libxml2

RUN \
curl https://download.swift.org/swift-5.9.2-release/ubuntu1804/swift-5.9.2-RELEASE/swift-5.9.2-RELEASE-ubuntu18.04.tar.gz -o swift.tar.gz &&\
tar xzf swift.tar.gz && \
Expand Down
18 changes: 17 additions & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ npm i ${NPM_NAME}
;;
elixir)
export INSTALL="[Elixir (Hex)](https://hex.pm/packages/${ELIXIR_PACKAGE_NAME}/)"
;;
swift)
export INSTALL="Install via [Swift Package Manager](https://github.com/ory/${GIT_REPO})"
;;
PATTERN_N)
STATEMENTS
Expand All @@ -76,9 +79,15 @@ npm i ${NPM_NAME}
esac

rm "${gitdir}/README.md" || true

LANG=$lang \
GIT_REPO=${repo} \
GIT_REPO=${repo}

if [ $lang = swift ]; then
envsubst < "contrib/clients/swift/README.md" > "${gitdir}/README.md"
else
envsubst < "config/README.md" > "${gitdir}/README.md"
fi

(cd "${gitdir}"; git add -A || true; (git commit -a -F- <<EOF
autogen: regenerate OpenAPI client for ${VERSION}
Expand Down Expand Up @@ -226,6 +235,12 @@ elixir() {
(cd "${dir}"; mix hex.publish --yes)
}

swift() {
dir="clients/${PROJECT}/swift"

to_git "swift" "yes"
}


FAIL=0

Expand All @@ -241,6 +256,7 @@ rust || let "FAIL+=1"
elixir || let "FAIL+=1"
java || let "FAIL+=1"
dotnet || let "FAIL+=1"
swift || let "FAIL+=1"
upstream || let "FAIL+=1"

echo "$FAIL"
Expand Down

0 comments on commit d6d3c36

Please sign in to comment.