Merge pull request #5112 from cevich/only_prune_from_master

Cirrus: Never run prune on other branches
This commit is contained in:
OpenShift Merge Robot 2020-02-11 02:07:09 +01:00 committed by GitHub
commit 34c9aeaffa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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"