diff options
Diffstat (limited to 'jobs/registry-update-base-images.yml')
-rw-r--r-- | jobs/registry-update-base-images.yml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/jobs/registry-update-base-images.yml b/jobs/registry-update-base-images.yml new file mode 100644 index 0000000..b51ae95 --- /dev/null +++ b/jobs/registry-update-base-images.yml @@ -0,0 +1,48 @@ +--- +- project: + name: registry-update-base-images + jobs: + - registry-update-base-images + +- job: + name: registry-update-base-images + description: | + Update base docker images in our private registry.osmocom.org with those from docker.io + Related:<br> + <ul> + <li> <a href="https://osmocom.org/issues/4839">OS#4839</a> + </ul> + properties: + - build-discarder: + days-to-keep: 30 + num-to-keep: 30 + node: osmocom-master + builders: + - shell: | + REGISTRY="registry.osmocom.org" + IMAGES=" + debian:buster + debian:bullseye + debian:bookworm + debian:sid + + centos:centos7 + " + for i in $IMAGES; do + src=$i + dst=${REGISTRY}/$i + echo + echo ======= $src + docker pull $src + docker tag $src $dst + docker push $dst + done + triggers: + - timed: "H 00 * * *" + + publishers: + - email: + notify-every-unstable-build: true + recipients: 'jenkins-notifications@lists.osmocom.org' + +# vim: expandtab tabstop=2 shiftwidth=2 |