summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2020-11-13 10:49:07 -0500
committerChris Evich <cevich@redhat.com>2020-11-16 15:23:08 -0500
commitb8d25bd2cdea0bde053d9895bff53b8564ebcac9 (patch)
tree7c8fd814a8fbd02eeb8b4e052383cf2ee2defd70
parent2993e97dec9d998d2eca7c5aee918b1429596a85 (diff)
downloadpodman-b8d25bd2cdea0bde053d9895bff53b8564ebcac9.tar.gz
podman-b8d25bd2cdea0bde053d9895bff53b8564ebcac9.tar.bz2
podman-b8d25bd2cdea0bde053d9895bff53b8564ebcac9.zip
Cirrus: Invalidate static cache on VM image update
It's important to periodically update the nix cache (about 1GB in size). If not, it can grow stale and has been observed causing task failures. Associating the nix cache update with a VM/Container image update, ensures it happens first in PRs where environment-related failures are less surprising. Signed-off-by: Chris Evich <cevich@redhat.com>
-rw-r--r--.cirrus.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 4156e3082..5f99b0490 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -362,7 +362,8 @@ static_alt_build_task:
# this cache ensures only the static podman binary is built.
nix_cache:
folder: '/var/cache/nix'
- fingerprint_script: cat nix/*
+ # Cirrus will calculate/use sha of this output as the cache key
+ fingerprint_script: echo "${IMAGE_SUFFIX}" && cat nix/*
setup_script: *setup
main_script: *main
always: *binary_artifacts