Skip to content

Commit

Permalink
feat: Update credentials for Ko Multi-Arch Images
Browse files Browse the repository at this point in the history
  • Loading branch information
LiteBrick204 committed Dec 2, 2024
1 parent 1950db2 commit 8335fa8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tekton/resources/images/ko-multi-arch-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ spec:
script: |
#!/usr/bin/env sh
gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
gcloud auth configure-docker
IMAGE_REGISTRY_USER=tekton-robot
IMAGE_REGISTRY_TOKEN=$(cat "$IMAGE_REGISTRY_CREDENTIALS")
echo "$IMAGE_REGISTRY_TOKEN" | docker login ghcr.io -u ${IMAGE_REGISTRY_USER} --password-stdin
cd $(workspaces.source.path)
ko publish --platform ${PLATFORMS} --base-import-paths --tags ${IMAGE_TAGS} ${CONTEXT_PATH}
Expand Down

0 comments on commit 8335fa8

Please sign in to comment.