summaryrefslogtreecommitdiff
path: root/contrib/cirrus/build_vm_images.sh
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2018-10-08 09:40:31 -0400
committerChris Evich <cevich@redhat.com>2018-10-31 09:48:31 -0400
commit91f398db4c92056bc77c1c82fe9a61e2c8739e8d (patch)
treed4cd96c2aed411117902942fa3c5f249ea0c3ff9 /contrib/cirrus/build_vm_images.sh
parent02eec644f1ed0c3620859fe714139f3354bdd591 (diff)
downloadpodman-91f398db4c92056bc77c1c82fe9a61e2c8739e8d.tar.gz
podman-91f398db4c92056bc77c1c82fe9a61e2c8739e8d.tar.bz2
podman-91f398db4c92056bc77c1c82fe9a61e2c8739e8d.zip
Cirrus: Skip rebuilding images unless instructed
Given frequent merges, it doesn't make sense to rebuild the VM testing images every time. Instead, monitor the PR title and description for a magic string, only triggering builds on a match: ***CIRRUS: REBUILD IMAGES*** Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/build_vm_images.sh')
-rwxr-xr-xcontrib/cirrus/build_vm_images.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/cirrus/build_vm_images.sh b/contrib/cirrus/build_vm_images.sh
index 80c689a6c..ffbb2d5d5 100755
--- a/contrib/cirrus/build_vm_images.sh
+++ b/contrib/cirrus/build_vm_images.sh
@@ -22,9 +22,7 @@ SCRIPT_BASE $SCRIPT_BASE
PACKER_BASE $PACKER_BASE
"
-# TODO: Skip building images if $CIRRUS_BRANCH =~ "master" and
-# commit message of $CIRRUS_CHANGE_IN_REPO contains a magic word
-# produced by 'commit_and_create_upstream_pr.sh' script (see .cirrus.yml)
+require_regex '\*\*\*\s*CIRRUS:\s*REBUILD\s*IMAGES\s*\*\*\*' 'Not re-building VM images'
show_env_vars