gitlab-ci: try to set up

This commit is contained in:
Luke Granger-Brown 2020-05-08 17:48:34 +01:00
parent a68ea0ce27
commit 333ad15d07
2 changed files with 12 additions and 0 deletions

9
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,9 @@
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

3
ci-root.nix Normal file
View file

@ -0,0 +1,3 @@
with (import ./default.nix {}); [
ops.nixos
]