Luke Granger-Brown
b9e5dac14c
/nix/store is now just a Docker volume on the host running the build, so the store should just implicitly get shared.
15 lines
477 B
YAML
15 lines
477 B
YAML
stages:
|
|
- build
|
|
|
|
nixCache:
|
|
stage: build
|
|
image: "nixos/nix:latest"
|
|
script:
|
|
- "mkdir -p ops/secrets"
|
|
- "cp ${OPS_SECRETS_DEFAULT_NIX} ops/secrets/default.nix"
|
|
- "nix build -v -f ./ci-root.nix --substituters \"https://cache.nixos.org s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1\""
|
|
- "nix copy -v --to 's3://lukegb-nix-cache?endpoint=storage.googleapis.com' ./result"
|
|
cache:
|
|
key: one-key-to-rule-them-all
|
|
paths:
|
|
- cache/
|