ci.ocp: Allow to set CAA TAG

to allow re-running with older CAA tag for bisection/reproduction.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
This commit is contained in:
Lukáš Doktor 2025-07-30 18:33:11 +02:00 committed by Steve Horsman
parent 97075be422
commit a818572a96

View File

@ -117,9 +117,11 @@ for NODE_NAME in $(kubectl get nodes -o jsonpath='{.items[*].metadata.name}'); d
# CAA artifacts # CAA artifacts
CAA_IMAGE="quay.io/confidential-containers/cloud-api-adaptor" CAA_IMAGE="quay.io/confidential-containers/cloud-api-adaptor"
TAGS="$(curl https://quay.io/api/v1/repository/confidential-containers/cloud-api-adaptor/tag/?onlyActiveTags=true)" if [[ -z "${CAA_TAG}" ]]; then
DIGEST=$(echo "${TAGS}" | jq -r '.tags[] | select(.name | contains("latest-amd64")) | .manifest_digest') TAGS="$(curl https://quay.io/api/v1/repository/confidential-containers/cloud-api-adaptor/tag/?onlyActiveTags=true)"
CAA_TAG="$(echo "${TAGS}" | jq -r '.tags[] | select(.manifest_digest | contains("'"${DIGEST}"'")) | .name' | grep -v "latest")" DIGEST=$(echo "${TAGS}" | jq -r '.tags[] | select(.name | contains("latest-amd64")) | .manifest_digest')
CAA_TAG="$(echo "${TAGS}" | jq -r '.tags[] | select(.manifest_digest | contains("'"${DIGEST}"'")) | .name' | grep -v "latest")"
fi
# Get latest PP image # Get latest PP image
SUCCESS_TIME=$(curl -s \ SUCCESS_TIME=$(curl -s \