Skip to content

Commit

Permalink
Fix release instructions
Browse files Browse the repository at this point in the history
Now that images are deployed to ghcr.io, different parameters are needed
for the release Pipeline.

Signed-off-by: Luiz Carvalho <[email protected]>
  • Loading branch information
lcarva committed Nov 6, 2024
1 parent 227b311 commit 06b273b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
4 changes: 3 additions & 1 deletion release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ text editor.
--param=gitRevision="${CHAINS_RELEASE_GIT_SHA}" \
--param=versionTag="${CHAINS_VERSION_TAG}" \
--param=serviceAccountPath=release.json \
--param=serviceAccountImagesPath=credentials \
--param=releaseBucket=gs://tekton-releases/chains \
--workspace name=release-secret,secret=release-secret \
--workspace name=release-images-secret,secret=ghcr-creds \
--use-param-defaults \
--workspace name=workarea,volumeClaimTemplateFile=workspace-template.yaml
```
Expand Down Expand Up @@ -97,7 +99,7 @@ text editor.
```bash
RELEASE_FILE=https://storage.googleapis.com/tekton-releases/chains/previous/${CHAINS_VERSION_TAG}/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
9 changes: 5 additions & 4 deletions release/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,21 @@ spec:
default: "controller"
- name: koExtraArgs
description: Extra args to be passed to ko
default: "--preserve-import-paths"
default: ""
- name: versionTag
description: The vX.Y.Z version that the artifacts should be tagged with (including `v`)
- name: imageRegistry
description: The target image registry
default: gcr.io
default: ghcr.io
- name: imageRegistryPath
description: The path (project) in the image registry
default: tektoncd/chains
- name: imageRegistryRegions
description: The target image registry regions
default: "us eu asia"
default: ""
- name: imageRegistryUser
description: Username to be used to login to the container registry
default: "_json_key"
default: "tekton-robot"
- name: releaseAsLatest
description: Whether to tag and publish this release as chainss' latest
default: "true"
Expand Down
10 changes: 5 additions & 5 deletions release/release-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ spec:
description: the git revision to release
- name: imageRegistry
description: The target image registry
default: gcr.io
default: ghcr.io
- name: imageRegistryPath
description: The path (project) in the image registry
default: tekton-releases
default: tektoncd/chains
- name: imageRegistryRegions
description: The target image registry regions
default: "us eu asia"
default: ""
- name: imageRegistryUser
description: The user for the image registry credentials
default: _json_key
default: tekton-robot
- name: versionTag
description: The X.Y.Z version that the artifacts should be tagged with
- name: releaseBucket
Expand All @@ -52,7 +52,7 @@ spec:
default: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
- name: koExtraArgs
description: Extra args to be passed to ko
default: "--preserve-import-paths"
default: ""
- name: serviceAccountPath
description: The path to the service account file within the release-secret workspace
- name: serviceAccountImagesPath
Expand Down
2 changes: 1 addition & 1 deletion releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ follows:
- The first Tekton Chains LTS release will be **v0.13.0** in October 2022

Tekton Chains produces nightly builds, publicly available on
`gcr.io/tekton-nightly`.
[ghcr.io/tektoncd/chains/controller-92006fd957c0afd31de6a40b3e33b39f](https://github.com/tektoncd/chains/pkgs/container/chains%2Fcontroller-92006fd957c0afd31de6a40b3e33b39f).

### Transition Process

Expand Down

0 comments on commit 06b273b

Please sign in to comment.