Compare commits

...

1 Commits

Author SHA1 Message Date
Patrick Cleavelin 3e91bdabfd don't plop nix store files on root of CI server
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-07-31 17:49:32 -05:00
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