gitlab-build-images/.gitlab/ci/report.yml
Rémy Coutable 7cb9668ef6
Ensure report-built-images doesn't fail when no images were built
Signed-off-by: Rémy Coutable <remy@rymai.me>
2024-06-03 07:19:25 +02:00

21 lines
431 B
YAML

report-built-images:
image: alpine
stage: report
script:
- |
set -- "${CI_PROJECT_DIR}"/*-built-image.txt
while [ "$#" -gt 0 ] && [ ! -f "$1" ]; do
shift
done
if [ -f "$1" ]; then
cat *-built-image.txt > all-built-images.txt
cat all-built-images.txt
else
echo "No images built";
fi
artifacts:
paths: ["all-built-images.txt"]
expire_in: 90d