Skip to content

Commit

Permalink
fix(ci): fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkness4 committed Aug 19, 2023
1 parent 5837723 commit be9487b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/check-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if verlt "$current_cfctl_version" "$cfctl_version"; then
fi

current_kubeseal_version=$(sed -En "s/kubeseal_version=(.*)/\1/p" ".ci/version-lock")
kubeseal_version=$(curl -H "Authorization: token ${TOKEN}" -fsSL https://api.github.com/repos/bitnami-labs/sealed-secrets/releases/latest | jq -r '.tag_name' | tr -d 'v')
kubeseal_version=$(curl -H "Authorization: token ${TOKEN}" -fsSL https://api.github.com/repos/bitnami-labs/sealed-secrets/releases | jq -r 'map(select(.tag_name | test("^v\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"))) | first.tag_name' | tr -d 'v')
if verlt "$current_kubeseal_version" "$kubeseal_version"; then
sed -Ei "s|kubeseal_version=.*\$|kubeseal_version=${kubeseal_version}|g" "$script_path/version-lock"
sed -Ei "s|KUBESEAL_VERSION=.*|KUBESEAL_VERSION=${kubeseal_version}|g" "$project_path/scripts/setup-env"
Expand Down

0 comments on commit be9487b

Please sign in to comment.