2020-05-08 16:48:34 +00:00
|
|
|
nixCache:
|
|
|
|
image: "nixos/nix:latest"
|
|
|
|
script:
|
2020-05-08 17:02:42 +00:00
|
|
|
- "mkdir -p ops/secrets"
|
|
|
|
- "cp ${OPS_SECRETS_DEFAULT_NIX} ops/secrets/default.nix"
|
2020-05-08 16:48:34 +00:00
|
|
|
- "test -d cache || mkdir cache"
|
2020-05-08 16:51:22 +00:00
|
|
|
- "nix-build ./ci-root.nix --option extra-substituters \"s3://lukegb-nix-cache?endpoint=storage.googleapis.com file://$PWD/cache\""
|
2020-05-08 16:48:34 +00:00
|
|
|
- "nix copy --to 'file://cache' -f ./ci-root.nix"
|
|
|
|
- "nix copy --to 's3://lukegb-nix-cache?endpoint=storage.googleapis.com' -f ./ci-root.nix"
|
|
|
|
cache:
|
|
|
|
key: one-key-to-rule-them-all
|