summaryrefslogtreecommitdiff
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-07-17 11:47:42 +0200
committerGitHub <noreply@github.com>2019-07-17 11:47:42 +0200
commit04a9cb01fec7a31a6ab4156f369a45399930e418 (patch)
tree0d3eeeb64545addef90db8eb3fcf7391386b2ea3 /.cirrus.yml
parentfe833086313335f88a9aada54890a83077ff41bf (diff)
parente8564dc44f54b15dc34c9cce17d5e302c618d58e (diff)
downloadpodman-04a9cb01fec7a31a6ab4156f369a45399930e418.tar.gz
podman-04a9cb01fec7a31a6ab4156f369a45399930e418.tar.bz2
podman-04a9cb01fec7a31a6ab4156f369a45399930e418.zip
Merge pull request #3335 from cevich/imgprune
Cirrus: Print images that should be pruned
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml27
1 files changed, 26 insertions, 1 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 9281c1196..70c3cb3da 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -263,7 +263,7 @@ meta_task:
cpu: 1
memory: 1
- env:
+ env: &meta_env_vars
# Space-separated list of images used by this repository state
IMGNAMES: >-
${FEDORA_CACHE_IMAGE_NAME}
@@ -279,6 +279,31 @@ meta_task:
timeout_in: 10m
+ # Cirrus-CI ignores entrypoint defined in image
+ script: '/usr/local/bin/entrypoint.sh |& ${TIMESTAMP}'
+
+
+# Remove old and disused images based on labels set by meta_task
+image_prune_task:
+
+ # Do not run this frequently
+ only_if: $CIRRUS_BRANCH == 'master'
+
+ depends_on:
+ - "meta"
+
+ container:
+ image: "quay.io/libpod/imgprune:latest" # see contrib/imgprune
+ cpu: 1
+ memory: 1
+
+ env:
+ <<: *meta_env_vars
+ GCPJSON: ENCRYPTED[4c11d8e09c904c30fc70eecb95c73dec0ddf19976f9b981a0f80f3f6599e8f990bcef93c253ac0277f200850d98528e7]
+ GCPNAME: ENCRYPTED[7f54557ba6e5a437f11283a53e71baec9ca546f48a9835538cc54d297f79968eb1337d4596a1025b14f9d1c5723fbd29]
+
+ timeout_in: 10m
+
script: '/usr/local/bin/entrypoint.sh |& ${TIMESTAMP}'