summaryrefslogtreecommitdiff
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-27 15:18:22 -0500
committerGitHub <noreply@github.com>2021-01-27 15:18:22 -0500
commit9d59daa7ccaea526a1aa742fadab537e77a51330 (patch)
tree421619779e182e336b759aef3db3c9e57417c755 /.cirrus.yml
parent14cc4aaf0a364bf0f4f7f77ec5f58fd79b1cb99e (diff)
parentf8bf509d16edaf9016d0b73265b3159c9bcaa223 (diff)
downloadpodman-9d59daa7ccaea526a1aa742fadab537e77a51330.tar.gz
podman-9d59daa7ccaea526a1aa742fadab537e77a51330.tar.bz2
podman-9d59daa7ccaea526a1aa742fadab537e77a51330.zip
Merge pull request #9082 from saschagrunert/static-build
Fix static build cache by using cachix
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml15
1 files changed, 7 insertions, 8 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 5a4815e1c..5b0d9ee6c 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -351,14 +351,13 @@ static_alt_build_task:
ALT_NAME: 'Static build'
# Do not use 'latest', fixed-version tag for runtime stability.
CTR_FQIN: "docker.io/nixos/nix:2.3.6"
- # This is critical, it helps to avoid a very lengthy process of
- # statically building every dependency needed to build podman.
- # Assuming the dependency and build description hasn't changed,
- # this cache ensures only the static podman binary is built.
- nix_cache:
- folder: '/var/cache/nix'
- # Cirrus will calculate/use sha of this output as the cache key
- fingerprint_script: echo "${IMAGE_SUFFIX}" && cat nix/*
+ # Authentication token for pushing the build cache to cachix.
+ # This is critical, it helps to avoid a very lengthy process of
+ # statically building every dependency needed to build podman.
+ # Assuming the pinned nix dependencies in nix/nixpkgs.json have not
+ # changed, this cache will ensure that only the static podman binary is
+ # built.
+ CACHIX_AUTH_TOKEN: ENCRYPTED[df0d4d0a67474e8ea49cc503221dcb912b7e2ba45c8ec4bf2e5fd9c49a18ac21c24bacee59b5393355ed9e4358d2baef]
setup_script: *setup
main_script: *main
always: *binary_artifacts