don't plop nix store files on root of CI server

Patrick Cleavelin 2023-07-31 17:29:19 -05:00
parent ab05681ebf
commit bd516528d5
1 changed files with 5 additions and 2 deletions

View File

@ -1,13 +1,16 @@
steps:
build-docker-image:
when:
event: push
image: alpine:edge
commands:
- echo ${{AGENT_NIX_STORE_PATH}}
- apk add --no-cache git nix --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing
- echo "system-features = nixos-test benchmark big-parallel uid-range kvm" > /etc/nix/nix.conf
- nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#docker
- cp $(nix build --extra-experimental-features nix-command --extra-experimental-features flakes --print-out-paths .#docker) ./memejoin-rs.tar.gz
volumes:
- /nix/store:/nix/store
- ${{AGENT_NIX_STORE_PATH}}/store:/nix/store
publish-image:
when:
@ -22,4 +25,4 @@ steps:
- 'docker image push git.spacegirl.nl/${CI_REPO}:${CI_COMMIT_TAG}'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /nix/store:/nix/store
- ${{AGENT_NIX_STORE_PATH}}/store:/nix/store