Skip to content

Commit

Permalink
Ensure update-istio.sh updates version field in versions.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Lukša <mluksa@redhat.com>
  • Loading branch information
luksa committed Apr 23, 2024
1 parent 70d7e82 commit ded6337
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hack/update-istio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ echo
FULL_VERSION=$(curl -sSfL "${URL}")
echo Full version: "${FULL_VERSION}"

yq -i '(.versions[] | select(.name == "latest") | .commit) = "'"${COMMIT}"'"' "${VERSIONS_YAML_FILE}"
PARTIAL_VERSION="${FULL_VERSION%.*}"
echo Partial version: "${PARTIAL_VERSION}"

yq -i '
(.versions[] | select(.name == "latest") | .version) = "'${PARTIAL_VERSION}'" |
(.versions[] | select(.name == "latest") | .commit) = "'"${COMMIT}"'" |
(.versions[] | select(.name == "latest") | .charts) = [
"https://storage.googleapis.com/istio-build/dev/'"${FULL_VERSION}"'/helm/base-'"${FULL_VERSION}"'.tgz",
"https://storage.googleapis.com/istio-build/dev/'"${FULL_VERSION}"'/helm/cni-'"${FULL_VERSION}"'.tgz",
Expand Down

0 comments on commit ded6337

Please sign in to comment.