diff --git a/.woodpecker.yml b/.woodpecker.yml index 152f1f5..488a1d5 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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