From 2e1e3ab97c3b71e416fbb9c7ce69f46dddfe4f5b Mon Sep 17 00:00:00 2001 From: RHTAP bot Date: Tue, 6 Aug 2024 00:07:40 +0000 Subject: [PATCH] Sync build-definitions --- pac/tasks/gather-deploy-images.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pac/tasks/gather-deploy-images.yaml b/pac/tasks/gather-deploy-images.yaml index 8d2b7cc..7ac989e 100644 --- a/pac/tasks/gather-deploy-images.yaml +++ b/pac/tasks/gather-deploy-images.yaml @@ -40,6 +40,7 @@ spec: set -euo pipefail IMAGE_PATH='.spec.template.spec.containers[0].image' + IMAGES_FILE='/tmp/all-images.txt' component_name=$(yq .metadata.name application.yaml) for env in "$@"; do @@ -55,9 +56,9 @@ spec: fi printf "%s\n" "$image" - done | sort -u > /tmp/all-images.txt + done | sort -u > $IMAGES_FILE - if [ ! -s /tmp/all-images.txt ]; then + if [ ! -s $IMAGES_FILE ]; then echo "No images to verify" touch $(results.IMAGES_TO_VERIFY.path) exit 0 @@ -66,7 +67,7 @@ spec: # TODO: each component needs a {"source": {"git": {"url": "...", "revision": "..."}}} # will that be too large for Tekton results? - jq --compact-output --raw-input --slurp < /tmp/all-images.txt ' + jq --compact-output --raw-input --slurp < $IMAGES_FILE ' # split input file split("\n") | # drop empty lines