From e9b9de9e541bbc17a218af87d26a1a3d537c3b44 Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Wed, 16 Mar 2022 21:31:25 +0000 Subject: [PATCH] Update the release cheatsheet to the new release drafter With https://github.com/tektoncd/plumbing/pull/1019 the release draft process is now a pipeline as it does not use pipeline resources anymore. The new template also include support for rekor. Update the cheatsheet accordingly. Signed-off-by: Andrea Frittoli --- tekton/release-cheat-sheet.md | 44 ++++++++++++++++------------------- 1 file changed, 20 insertions(+), 24 deletions(-) diff --git a/tekton/release-cheat-sheet.md b/tekton/release-cheat-sheet.md index 5190f02baa8..2102a7f58df 100644 --- a/tekton/release-cheat-sheet.md +++ b/tekton/release-cheat-sheet.md @@ -86,6 +86,15 @@ the pipelines repo, a terminal window and a text editor. | jq ".[].name" ``` + 1. Find the Rekor UUID for the release + + ```bash + 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) + 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}" + ``` + 1. Create additional environment variables ```bash @@ -94,36 +103,20 @@ the pipelines repo, a terminal window and a text editor. TEKTON_PACKAGE=tektoncd/pipeline ``` - 1. Create a `PipelineResource` of type `git` - - ```shell - cat <