Skip to content

Commit

Permalink
Fix wrong shell in release task
Browse files Browse the repository at this point in the history
And make some files KUBE_DISTRO specific to avoid clash between
publish tasks running in parallel with different KUBE_DISTRO

Signed-off-by: Andrea Frittoli <[email protected]>
  • Loading branch information
afrittoli committed Dec 18, 2024
1 parent 344b6d7 commit c4f862d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tekton/build-publish-images-manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ spec:
- name: container-registy-auth
image: cgr.dev/chainguard/crane:latest-dev@sha256:6fc6fcdeb173c7951f038e6a7b230f586c1be05a011d9e6f9db6c614ec412c2f
script: |
#!/busybox/sh
#!/bin/sh
set -ex
# Login to the container registry
Expand All @@ -91,7 +91,7 @@ spec:
HOSTNAME=${region}.$(params.imageRegistry)
cat ${CONTAINER_REGISTY_CREDENTIALS} | crane auth login -u _json_key --password-stdin ${HOSTNAME}
done
cp ${DOCKER_CONFIG} /workspace/docker-config.json
cp ${DOCKER_CONFIG} /workspace/${KUBE_DISTRO}-docker-config.json
- name: run-kustomize-ko
image: gcr.io/tekton-releases/dogfooding/ko-gcloud:v20240920-6c2a999d36@sha256:1756ca55a09b360028695792e638a7cc366292d7aef44c926a8cb765085664c8
Expand All @@ -109,7 +109,7 @@ spec:
# Setup docker-auth
DOCKER_CONFIG=~/.docker
mkdir -p ${DOCKER_CONFIG}
cp /workspace/docker-config.json ${DOCKER_CONFIG}/config.json
cp /workspace/${KUBE_DISTRO}-docker-config.json ${DOCKER_CONFIG}/config.json
# Change to directory with our .ko.yaml
cd ${PROJECT_ROOT}
Expand Down Expand Up @@ -139,7 +139,7 @@ spec:
# Make a local git tag to make git status happy :)
# The real "tagging" will happen with the "create-release" pipeline.
git tag $(params.versionTag)
git tag $(params.versionTag)-${KUBE_DISTRO}
kustomize build ${PROJECT_ROOT}/config/${KUBE_DISTRO}/overlays/default | \
ko resolve \
Expand Down Expand Up @@ -200,7 +200,7 @@ spec:
# Setup docker-auth
DOCKER_CONFIG=~/.docker
mkdir -p ${DOCKER_CONFIG}
cp /workspace/docker-config.json ${DOCKER_CONFIG}/config.json
cp /workspace/${KUBE_DISTRO}-docker-config.json ${DOCKER_CONFIG}/config.json
# Tag the images and put them in all the regions
for IMAGE in $(cat /workspace/built_images)
Expand Down

0 comments on commit c4f862d

Please sign in to comment.