Skip to content

Commit

Permalink
tekton: fix bugfix-release.sh script
Browse files Browse the repository at this point in the history
- Images are now ghcr.io and not gcr.io
- Add a "latest" option (default to false)

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Nov 6, 2024
1 parent e7d577b commit b2228da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tekton/bugfix-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}"

Expand Down

0 comments on commit b2228da

Please sign in to comment.