File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
3535TASK_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
4143MANIFEST=$( mktemp --tmpdir)
4244function cleanup() {
@@ -47,7 +49,9 @@ skopeo inspect "docker://${TASK_BUNDLE_REPO}:${TASK_BUNDLE_TAG}" --raw > "${MANI
4749TASK_BUNDLE_DIGEST=" $( skopeo manifest-digest " ${MANIFEST} " ) "
4850REVISION=" $( jq -r ' .annotations["org.opencontainers.image.revision"]' " ${MANIFEST} " ) "
4951if [[ -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} "
5155fi
5256# Sanity check
5357diff \
You can’t perform that action at this time.
0 commit comments