Verified Commit 9003b3b5 authored by Michal Nowak's avatar Michal Nowak
Browse files

Show jobs only when their files changed

parent b48a2b23
......@@ -32,6 +32,61 @@ stages:
- linux
- i386
.only_if_docker_bind9_alpine_changed: &only_if_docker_bind9_alpine_changed
only:
changes:
- docker/bind9/alpine/*
.only_if_docker_bind9_centos_changed: &only_if_docker_bind9_centos_changed
only:
changes:
- docker/bind9/centos/*
.only_if_docker_bind9_fedora_changed: &only_if_docker_bind9_fedora_changed
only:
changes:
- docker/bind9/fedora/*
.only_if_docker_bind9_debian_changed: &only_if_docker_bind9_debian_changed
only:
changes:
- docker/bind9/debian/*
.only_if_docker_bind9_ubuntu_changed: &only_if_docker_bind9_ubuntu_changed
only:
changes:
- docker/bind9/ubuntu/*
.only_if_docker_bind9_tumbleweed_changed: &only_if_docker_bind9_tumbleweed_changed
only:
changes:
- docker/bind9/tumbleweed/*
.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
......@@ -73,6 +128,7 @@ alpine:3.11:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_alpine_changed
centos:6:amd64:docker:
stage: images
......@@ -82,6 +138,7 @@ centos:6:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_centos_changed
centos:7:amd64:docker:
stage: images
......@@ -91,6 +148,7 @@ centos:7:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_centos_changed
centos:8:amd64:docker:
stage: images
......@@ -100,6 +158,7 @@ centos:8:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_centos_changed
centos:6:amd64:packer:
stage: images
......@@ -111,6 +170,7 @@ centos:6:amd64:packer:
ISO_CHECKSUM: 7c0dee2a0494dabd84809b72ddb4b761f9ef92b78a506aef709b531c54d30770
<<: *linux_amd64
<<: *kvm_image_job
<<: *only_if_packer_centos_changed
centos:7:amd64:packer:
stage: images
......@@ -122,6 +182,7 @@ centos:7:amd64:packer:
ISO_CHECKSUM: 9a2c47d97b9975452f7d582264e9fc16d108ed8252ac6816239a3b58cef5c53d
<<: *linux_amd64
<<: *kvm_image_job
<<: *only_if_packer_centos_changed
centos:8:amd64:packer:
stage: images
......@@ -133,6 +194,7 @@ centos:8:amd64:packer:
ISO_CHECKSUM: 7fea13202bf2f26989df4175aace8fdc16e1137f7961c33512cbfad844008948
<<: *linux_amd64
<<: *kvm_image_job
<<: *only_if_packer_centos_changed
fedora:31:amd64:docker:
stage: images
......@@ -142,6 +204,7 @@ fedora:31:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_fedora_changed
debian:stretch:amd64:docker:
stage: images
......@@ -151,6 +214,7 @@ debian:stretch:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_debian_changed
debian:buster:amd64:docker:
stage: images
......@@ -160,6 +224,7 @@ debian:buster:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_debian_changed
debian:sid:amd64:docker:
stage: images
......@@ -169,6 +234,7 @@ debian:sid:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_debian_changed
debian:sid:arm64:docker:
image: arm64v8/docker:latest
......@@ -181,6 +247,7 @@ debian:sid:arm64:docker:
ARCHS: arm64
<<: *linux_arm64
<<: *docker_image_job
<<: *only_if_docker_bind9_debian_changed
ubuntu:xenial:amd64:docker:
stage: images
......@@ -190,6 +257,7 @@ ubuntu:xenial:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_ubuntu_changed
ubuntu:bionic:amd64:docker:
stage: images
......@@ -199,6 +267,7 @@ ubuntu:bionic:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_ubuntu_changed
debian:stretch:i386:docker:
stage: images
......@@ -208,6 +277,7 @@ debian:stretch:i386:docker:
ARCHS: i386
<<: *linux_i386
<<: *docker_image_job
<<: *only_if_docker_bind9_debian_changed
debian:buster:i386:docker:
stage: images
......@@ -217,6 +287,7 @@ debian:buster:i386:docker:
ARCHS: i386
<<: *linux_i386
<<: *docker_image_job
<<: *only_if_docker_bind9_debian_changed
debian:sid:i386:docker:
stage: images
......@@ -226,6 +297,7 @@ debian:sid:i386:docker:
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".
......@@ -237,6 +309,7 @@ tumbleweed:latest:amd64:docker:
ARCHS: amd64
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_bind9_tumbleweed_changed
ubuntu:xenial:i386:docker:
stage: images
......@@ -246,6 +319,7 @@ ubuntu:xenial:i386:docker:
ARCHS: i386
<<: *linux_i386
<<: *docker_image_job
<<: *only_if_docker_bind9_ubuntu_changed
ubuntu:bionic:i386:docker:
stage: images
......@@ -255,6 +329,7 @@ ubuntu:bionic:i386:docker:
ARCHS: i386
<<: *linux_i386
<<: *docker_image_job
<<: *only_if_docker_bind9_ubuntu_changed
packager:rpm:docker:
stage: images
......@@ -262,6 +337,7 @@ packager:rpm:docker:
TARGET: packager-rpm
<<: *linux_amd64
<<: *docker_image_job
<<: *only_if_docker_packager_rpm_changed
website:rsync_ssh_curl:docker:
stage: images
......@@ -269,6 +345,7 @@ 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
......@@ -280,6 +357,7 @@ 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
......@@ -291,6 +369,7 @@ 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
......@@ -302,3 +381,4 @@ 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