From d6d3c3661766955d4c5dcf58a418699e53c38227 Mon Sep 17 00:00:00 2001 From: Alexandra Talalaieva <25621530+sashatalalasha@users.noreply.github.com> Date: Wed, 13 Mar 2024 13:31:47 +0100 Subject: [PATCH] chore: update dockerfile and add swift release --- Dockerfile | 5 +++++ scripts/release.sh | 18 +++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e0178272b6..962eed554e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \ diff --git a/scripts/release.sh b/scripts/release.sh index a25c73d317..ffd9ba6c2e 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -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 @@ -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- <