From 3bdbce4985c97d7c71809ef75b45524fe43d7503 Mon Sep 17 00:00:00 2001 From: Patrick Cleavelin Date: Sat, 29 Jul 2023 12:46:34 -0500 Subject: [PATCH] will this actually work, probably not --- .woodpecker.yml | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index ef0574b..faf6830 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -5,22 +5,24 @@ steps: - apk add --no-cache git nix --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#default - #build-docker-image: - # when: - # event: tag - # image: alpine:edge - # commands: - # - 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 + build-docker-image: + when: + event: [tag, deployment] + environment: prod + image: alpine:edge + commands: + - 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 - #publish-image: - # when: - # event: tag - # image: git.spacegirl.nl/patrick/plugin-artifact - # settings: - # tag: $CI_COMMIT_TAG - # user: patrick - # password: - # from_secret: forgejo_token - # repo: $CI_REPO - # image_tar: result + publish-image: + when: + event: [tag, deployment] + environment: prod + image: git.spacegirl.nl/patrick/plugin-artifact + settings: + tag: $CI_COMMIT_TAG + user: patrick + password: + from_secret: forgejo_token + repo: $CI_REPO + image_tar: result