Skip to content

Commit

Permalink
Merge pull request #51 from redhat-appstudio/selfupdate/import-build-…
Browse files Browse the repository at this point in the history
…definitions

Sync build-definitions
  • Loading branch information
openshift-merge-bot[bot] authored Aug 6, 2024
2 parents 3f233d4 + 2e1e3ab commit c80a4be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pac/tasks/gather-deploy-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c80a4be

Please sign in to comment.