summaryrefslogtreecommitdiff
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2020-02-06 13:43:06 -0500
committerChris Evich <cevich@redhat.com>2020-02-06 13:47:58 -0500
commit9e55bcc3044b24210bf16d92d38928dc3405207d (patch)
treede905f35ecd5e1b5091320d26801cb8a4db5f751 /.cirrus.yml
parent62111bceb7dab4fc51760b86f762df3716f296fc (diff)
downloadpodman-9e55bcc3044b24210bf16d92d38928dc3405207d.tar.gz
podman-9e55bcc3044b24210bf16d92d38928dc3405207d.tar.bz2
podman-9e55bcc3044b24210bf16d92d38928dc3405207d.zip
Cirrus: Never run prune on other branches
This is needed because the prune container image will be built from other branches as they are made. If the behavior of this or the imgts image diverges from that of master, random VM images could be "cleaned" unexpectedly. By hard-coding this task to the master branch only, it should never run anywhere else. Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 655fa3830..4e751514d 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -316,8 +316,10 @@ meta_task:
# Remove old and disused images based on labels set by meta_task
image_prune_task:
- # Do not run this frequently
- only_if: $CIRRUS_BRANCH == $DEST_BRANCH
+ # This should ONLY ever run from the master branch, and never
+ # anywhere else so it's behavior is always consistent, even
+ # as new branches are created.
+ only_if: $CIRRUS_BRANCH == "master"
depends_on:
- "meta"