Skip to content

Commit b535cbf

Browse files
authored
Merge pull request #2625 from simonbaird/tag-fix-for-infra-deployment-update
Tag fix for infra deployment update
2 parents cdfd918 + 2e3e1bf commit b535cbf

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

hack/update-infra-deployments.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ echo 'Resolving task bundle...'
3131

3232
# Task definition built and pushed from main branch in the cli
3333
# repo by the Conforma Konflux build pipeline
34-
TASK_BUNDLE_REPO=quay.io/enterprise-contract/tekton-task
34+
TASK_BUNDLE_REPO=quay.io/conforma/tekton-task
3535
TASK_BUNDLE_TAG="${2:-latest}"
36+
TAG_PREFIX="kf-"
3637

3738
# The same but built and pushed by a GitHub Workflow. Now deprecated.
38-
#TASK_BUNDLE_REPO=quay.io/enterprise-contract/ec-task-bundle
39+
#TASK_BUNDLE_REPO=quay.io/conforma/tekton-task
3940
#TASK_BUNDLE_TAG="${2:-snapshot}"
41+
#TAG_PREFIX="gh-"
4042

4143
MANIFEST=$(mktemp --tmpdir)
4244
function cleanup() {
@@ -47,7 +49,9 @@ skopeo inspect "docker://${TASK_BUNDLE_REPO}:${TASK_BUNDLE_TAG}" --raw > "${MANI
4749
TASK_BUNDLE_DIGEST="$(skopeo manifest-digest "${MANIFEST}")"
4850
REVISION="$(jq -r '.annotations["org.opencontainers.image.revision"]' "${MANIFEST}")"
4951
if [[ -n "${REVISION}" && "${REVISION}" != null ]]; then
50-
TASK_BUNDLE_TAG="${REVISION}"
52+
# We push "kf-{{sha}}" tags for Konflux built task bundles and "gh-{{sha}}"
53+
# tags for GitHub built task bundles. That's why the $TAG_PREFIX is needded.
54+
TASK_BUNDLE_TAG="${TAG_PREFIX}${REVISION}"
5155
fi
5256
# Sanity check
5357
diff \

0 commit comments

Comments
 (0)