Skip to content

Commit

Permalink
fix: upgrade pipeline source tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Demonsthere committed Apr 5, 2022
1 parent b9c76ec commit 3c1d6b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .circleci/helm-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ cfg=$(mktemp)
export cfg
export KUBECONFIG="$cfg"
export TIMEOUT="120s"
export BASE_RELEASE=$(curl -s https://api.github.com/repos/ory/k8s/releases/latest | grep "tag_name" | cut -d ':' -f 2 | tr -d '", ')

export BASE_RELEASE=$(helm search repo "ory/$1" | awk '{print $2}' | head -2 | tail -1)

kind get kubeconfig > "$cfg"

Expand All @@ -19,10 +20,10 @@ function teardown() {

trap teardown HUP INT QUIT TERM EXIT

echo "---> Installing $1 from ${BASE_RELEASE}"
echo "---> Installing $1 from v${BASE_RELEASE}"

set +e
helm install -f "https://raw.githubusercontent.com/ory/k8s/${BASE_RELEASE}/.circleci/values/$1.yaml" "${release}" "ory/$1" --wait --timeout="${TIMEOUT}"
helm install -f "https://raw.githubusercontent.com/ory/k8s/v${BASE_RELEASE}/.circleci/values/$1.yaml" "${release}" "ory/$1" --wait --timeout="${TIMEOUT}"
export INSTALLATION_STATUS=$?
set -e

Expand Down

0 comments on commit 3c1d6b3

Please sign in to comment.