From b2228da2d2bc30d3f39553ab247b8ffc8a37a8a0 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Wed, 6 Nov 2024 10:01:49 +0100 Subject: [PATCH] tekton: fix bugfix-release.sh script - Images are now ghcr.io and not gcr.io - Add a "latest" option (default to false) Signed-off-by: Vincent Demeester --- tekton/bugfix-release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tekton/bugfix-release.sh b/tekton/bugfix-release.sh index dd3ac229528..c507d6fe1d0 100755 --- a/tekton/bugfix-release.sh +++ b/tekton/bugfix-release.sh @@ -2,7 +2,7 @@ set -eu -o pipefail RELEASE_BRANCH=${1:-$(git rev-parse --abbrev-ref HEAD)} -shift +LATEST=${LATEST:-false} echo "> Make sure our remotes are up-to-date" git fetch -p --all @@ -50,13 +50,13 @@ tkn pipeline start pipeline-release \ --param=versionTag="${TEKTON_VERSION}" \ --param=releaseBucket=gs://tekton-releases/pipeline \ --param=koExtraArgs=" " \ - --param=releaseAsLatest="false" \ + --param=releaseAsLatest="${LATEST}" \ --workspace name=release-secret,secret=release-secret \ --workspace name=release-images-secret,secret=ghcr-creds \ --workspace name=workarea,volumeClaimTemplateFile=workspace-template.yaml --use-param-defaults --pipeline-timeout 3h --showlog RELEASE_FILE=https://storage.googleapis.com/tekton-releases/pipeline/previous/${TEKTON_VERSION}/release.yaml -CONTROLLER_IMAGE_SHA=$(curl $RELEASE_FILE | egrep 'gcr.io.*controller' | cut -d'@' -f2) +CONTROLLER_IMAGE_SHA=$(curl $RELEASE_FILE | egrep 'ghcr.io.*controller' | cut -d'@' -f2) REKOR_UUID=$(rekor-cli search --sha $CONTROLLER_IMAGE_SHA | grep -v Found | head -1) echo -e "CONTROLLER_IMAGE_SHA: ${CONTROLLER_IMAGE_SHA}\nREKOR_UUID: ${REKOR_UUID}"