Introduce a report-built-images job to gather the list of all built images

This commit is contained in:
Rémy Coutable 2024-06-01 06:46:35 +00:00 committed by Balasankar 'Balu' C
parent 439201893a
commit 2ddf1ada73
4 changed files with 33 additions and 17 deletions

View file

@ -18,9 +18,16 @@
fi
- docker buildx create --use # creates and set's to active buildkit builder
.with-built-image-artifact:
artifacts:
paths: ["*-built-image.txt"]
expire_in: 7d
.build_dynamic_image:
stage: custom
extends: .install-qemu
extends:
- .install-qemu
- .with-built-image-artifact
needs: []
script:
- ./scripts/lib/custom-docker-build
@ -30,7 +37,9 @@
.build_static_image:
stage: custom
extends: .install-qemu
extends:
- .install-qemu
- .with-built-image-artifact
needs: []
script:
# Hack to set an array in /bin/sh
@ -94,15 +103,3 @@
- if: '$CI_MERGE_REQUEST_IID'
when: manual
allow_failure: true
.dont-interrupt-me:
stage: .pre
interruptible: false
script:
- echo "This jobs makes sure this pipeline won't be interrupted! See https://docs.gitlab.com/ee/ci/yaml/#interruptible."
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
allow_failure: true
- if: $CI_MERGE_REQUEST_IID
when: manual
allow_failure: true

10
.gitlab/ci/report.yml Normal file
View file

@ -0,0 +1,10 @@
report-built-images:
image: alpine
stage: report
script:
- cat *-built-image.txt > all-built-images.txt
- cat all-built-images.txt
artifacts:
paths: ["all-built-images.txt"]
expire_in: 90d