summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2018-10-15 08:59:37 -0400
committerChris Evich <cevich@redhat.com>2018-10-31 09:48:31 -0400
commit02eec644f1ed0c3620859fe714139f3354bdd591 (patch)
tree8fd24340f2c53b46185f9f1c05b6ff2fb0a19430
parent021ca5780cdcdcb482716ea771118728affa4a77 (diff)
downloadpodman-02eec644f1ed0c3620859fe714139f3354bdd591.tar.gz
podman-02eec644f1ed0c3620859fe714139f3354bdd591.tar.bz2
podman-02eec644f1ed0c3620859fe714139f3354bdd591.zip
Cirrus: Disable image build job abort on push
Normally cirrus will abort jobs if another push is made to a branch. However, with image builds, other VMs are created/managed by packer. Therefor if cirrus aborts a task, it's possible some packer managed VMs will be left behind. Disable this behavior for image-building only. Signed-off-by: Chris Evich <cevich@redhat.com>
-rw-r--r--.cirrus.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index ae660394b..1cf21416e 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -99,6 +99,8 @@ build_vm_images_task:
# Version of packer to use
PACKER_VER: "1.3.1"
+ # VMs created by packer are not cleaned up by cirrus
+ auto_cancellation: $CI != "true"
gce_instance:
image_name: "image-builder-image" # Simply CentOS 7 + packer dependencies