diff --git a/hack/build-and-push.sh b/hack/build-and-push.sh index 37a268d806..feb1880a05 100755 --- a/hack/build-and-push.sh +++ b/hack/build-and-push.sh @@ -120,7 +120,7 @@ do tag=${TEST_REPO_NAME:+${task_name}-}${task_version} task_bundle=quay.io/$QUAY_NAMESPACE/${repository}:${tag}-${task_file_sha} - if digest=$(skopeo inspect --no-tags --format='{{.Digest}}' docker://"${task_bundle}-${task_file_sha}" 2>/dev/null); then + if digest=$(skopeo inspect --no-tags --format='{{.Digest}}' docker://"${task_bundle}" 2>/dev/null); then task_bundle_with_digest=${task_bundle}@${digest} else output=$(tkn_bundle_push -f "$prepared_task_file" "$task_bundle" | save_ref "$task_bundle" "$OUTPUT_TASK_BUNDLE_LIST")