From 2489379c4b65b8a9bf21a3fec31bd262303c952a Mon Sep 17 00:00:00 2001 From: Patrick Cleavelin Date: Tue, 14 Feb 2023 19:14:37 -0600 Subject: [PATCH] test CI --- .woodpecker.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..3a2f3dc --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,27 @@ +pipeline: + build: + image: alpine:edge + commands: + - 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: + - 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 + + publish-image: + when: + event: tag + image: git.spacegirl.nl/patrick/plugin-artifact:v0.1.0 + settings: + tag: $${CI_COMMIT_TAG} + user: patrick + password: + from_secret: forgejo_token + repo: $${CI_REPO} + image_tar: result