depot/.gitlab-ci.yml

10 lines
416 B
YAML
Raw Normal View History

2020-05-08 16:48:34 +00:00
nixCache:
image: "nixos/nix:latest"
script:
- "test -d cache || mkdir cache"
- "nix-build -f ./ci-root.nix --option extra-substituters \"s3://lukegb-nix-cache?endpoint=storage.googleapis.com file://$PWD/cache\""
- "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