diff --git a/.woodpecker.yml b/.woodpecker.yml index fc71132..7e7c50b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,16 +1,19 @@ steps: build-docker-image: + when: + event: push image: alpine:edge commands: - 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: + - ${AGENT_NIX_STORE_PATH}:/nix publish-image: when: - - event: tag - branch: master + event: tag image: docker secrets: [ forgejo_token ] commands: @@ -20,3 +23,4 @@ steps: - 'docker image push git.spacegirl.nl/${CI_REPO}:${CI_COMMIT_TAG}' volumes: - /var/run/docker.sock:/var/run/docker.sock + - ${AGENT_NIX_STORE_PATH}:/nix diff --git a/flake.nix b/flake.nix index 1ebb90f..8e8ddf5 100644 --- a/flake.nix +++ b/flake.nix @@ -8,7 +8,7 @@ outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: let - tag = "0.1.4_3-alpha"; + tag = "v0.1.4_4-alpha"; overlays = [ (import rust-overlay) ]; pkgs = import nixpkgs { inherit system overlays;