Verified Commit 58711bba authored by Michal Nowak's avatar Michal Nowak
Browse files

Rebuild Tumbleweed and sid images periodically

'when:manual' for all Docker (and KVM) jobs prevents us from executing
them via Scheduler (a pipeline with 'skipped' jobs is created). As we
nearly never intend to execute all jobs at once, and thus removing
'when:manual' is not an option, special 'REBUILD_PERIODICALLY' variable
is added for jobs which should rather have 'when:always' set and thus
start automatically in Schedule.

'only_if_XXX_changed' templates were removed as 'only' is not compatible
with 'rules' (and is deprecated anyway) and because they are not working
as intended in most situations.
parent e249f4e4
......@@ -32,65 +32,13 @@ stages:
- linux
- i386
.only_if_docker_bind9_alpine_changed: &only_if_docker_bind9_alpine_changed
only:
changes:
- docker/bind9/alpine-template/*
.only_if_docker_bind9_centos_changed: &only_if_docker_bind9_centos_changed
only:
changes:
- docker/bind9/centos-template/*
.only_if_docker_bind9_fedora_changed: &only_if_docker_bind9_fedora_changed
only:
changes:
- docker/bind9/fedora-template/*
.only_if_docker_bind9_debian_changed: &only_if_docker_bind9_debian_changed
only:
changes:
- docker/bind9/debian-template/*
.only_if_docker_bind9_ubuntu_changed: &only_if_docker_bind9_ubuntu_changed
only:
changes:
- docker/bind9/ubuntu-template/*
.only_if_docker_bind9_tumbleweed_changed: &only_if_docker_bind9_tumbleweed_changed
only:
changes:
- docker/bind9/tumbleweed-template/*
.only_if_docker_packager_rpm_changed: &only_if_docker_packager_rpm_changed
only:
changes:
- docker/packager/rpm/*
.only_if_docker_website_rsync_ssh_curl_changed: &only_if_docker_website_rsync_ssh_curl_changed
only:
changes:
- docker/website/rsync_ssh_curl/*
.only_if_packer_centos_changed: &only_if_packer_centos_changed
only:
changes:
- packer/centos/*
.only_if_packer_freebsd_changed: &only_if_packer_freebsd_changed
only:
changes:
- packer/freebsd/*
.only_if_packer_openbsd_changed: &only_if_packer_openbsd_changed
only:
changes:
- packer/openbsd/*
.image_job: &image_job
services:
- docker:dind
when: manual
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule" && $REBUILD_PERIODICALLY == "yes"'
when: always
- when: manual
allow_failure: true
before_script:
# Since IPv6 is not configured properly for containers running these jobs,
......@@ -128,7 +76,6 @@ alpine:3.11:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_alpine_changed
centos:6:amd64:docker:
stage: images
......@@ -138,7 +85,6 @@ centos:6:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_centos_changed
centos:7:amd64:docker:
stage: images
......@@ -148,7 +94,6 @@ centos:7:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_centos_changed
centos:8:amd64:docker:
stage: images
......@@ -158,7 +103,6 @@ centos:8:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_centos_changed
centos:6:amd64:packer:
stage: images
......@@ -170,7 +114,6 @@ centos:6:amd64:packer:
ISO_CHECKSUM: 7c0dee2a0494dabd84809b72ddb4b761f9ef92b78a506aef709b531c54d30770
<<: *linux_amd64
<<: *kvm_image_job
<<: *only_if_packer_centos_changed
centos:7:amd64:packer:
stage: images
......@@ -182,7 +125,6 @@ centos:7:amd64:packer:
ISO_CHECKSUM: 9a2c47d97b9975452f7d582264e9fc16d108ed8252ac6816239a3b58cef5c53d
<<: *linux_amd64
<<: *kvm_image_job
<<: *only_if_packer_centos_changed
centos:8:amd64:packer:
stage: images
......@@ -194,7 +136,6 @@ centos:8:amd64:packer:
ISO_CHECKSUM: 7fea13202bf2f26989df4175aace8fdc16e1137f7961c33512cbfad844008948
<<: *linux_amd64
<<: *kvm_image_job
<<: *only_if_packer_centos_changed
fedora:31:amd64:docker:
stage: images
......@@ -204,7 +145,6 @@ fedora:31:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_fedora_changed
debian:stretch:amd64:docker:
stage: images
......@@ -214,7 +154,6 @@ debian:stretch:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_debian_changed
debian:buster:amd64:docker:
stage: images
......@@ -224,17 +163,16 @@ debian:buster:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_debian_changed
debian:sid:amd64:docker:
stage: images
variables:
REBUILD_PERIODICALLY: "yes"
DISTROS: debian
VERSIONS: sid
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_debian_changed
debian:sid:arm64:docker:
image: arm64v8/docker:latest
......@@ -247,7 +185,6 @@ debian:sid:arm64:docker:
ARCHS: arm64
<<: *linux_arm64
<<: *docker_image_job
<<: *only_if_docker_bind9_debian_changed
ubuntu:xenial:amd64:docker:
stage: images
......@@ -257,7 +194,6 @@ ubuntu:xenial:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_ubuntu_changed
ubuntu:bionic:amd64:docker:
stage: images
......@@ -267,7 +203,6 @@ ubuntu:bionic:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_ubuntu_changed
debian:stretch:i386:docker:
stage: images
......@@ -277,7 +212,6 @@ debian:stretch:i386:docker:
ARCHS: i386
<<: *linux_i386
<<: *docker_image_job
<<: *only_if_docker_bind9_debian_changed
debian:buster:i386:docker:
stage: images
......@@ -287,29 +221,28 @@ debian:buster:i386:docker:
ARCHS: i386
<<: *linux_i386
<<: *docker_image_job
<<: *only_if_docker_bind9_debian_changed
debian:sid:i386:docker:
stage: images
variables:
REBUILD_PERIODICALLY: "yes"
DISTROS: debian
VERSIONS: sid
ARCHS: i386
<<: *linux_i386
<<: *docker_image_job
<<: *only_if_docker_bind9_debian_changed
# openSUSE Tumbleweed is a rolling release distribution,
# which has only one version "latest".
tumbleweed:latest:amd64:docker:
stage: images
variables:
REBUILD_PERIODICALLY: "yes"
DISTROS: tumbleweed
VERSIONS: latest
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_tumbleweed_changed
ubuntu:xenial:i386:docker:
stage: images
......@@ -319,7 +252,6 @@ ubuntu:xenial:i386:docker:
ARCHS: i386
<<: *linux_i386
<<: *docker_image_job
<<: *only_if_docker_bind9_ubuntu_changed
ubuntu:bionic:i386:docker:
stage: images
......@@ -329,7 +261,6 @@ ubuntu:bionic:i386:docker:
ARCHS: i386
<<: *linux_i386
<<: *docker_image_job
<<: *only_if_docker_bind9_ubuntu_changed
packager:rpm:docker:
stage: images
......@@ -337,7 +268,6 @@ packager:rpm:docker:
TARGET: packager-rpm
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_packager_rpm_changed
website:rsync_ssh_curl:docker:
stage: images
......@@ -345,7 +275,6 @@ website:rsync_ssh_curl:docker:
TARGET: website-rsync_ssh_curl
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_website_rsync_ssh_curl_changed
freebsd:11.3:amd64:packer:
stage: images
......@@ -357,7 +286,6 @@ freebsd:11.3:amd64:packer:
ISO_CHECKSUM: d268db365e26305ec3d51b29211caad903749c33a4a8f2cf661d671f8e0ba0b0
<<: *linux_amd64
<<: *kvm_image_job
<<: *only_if_packer_freebsd_changed
freebsd:12.1:amd64:packer:
stage: images
......@@ -369,7 +297,6 @@ freebsd:12.1:amd64:packer:
ISO_CHECKSUM: aa9d34b458826486999ed3e872436b6712ae38cede5ea41de4ab923e3419d461
<<: *linux_amd64
<<: *kvm_image_job
<<: *only_if_packer_freebsd_changed
openbsd:6.6:amd64:packer:
stage: images
......@@ -381,4 +308,3 @@ openbsd:6.6:amd64:packer:
ISO_CHECKSUM: b22e63df56e6266de6bbeed8e9be0fbe9ee2291551c5bc03f3cc2e4ab9436ee3
<<: *linux_amd64
<<: *kvm_image_job
<<: *only_if_packer_openbsd_changed
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment