From d403868214ec1b7adeb91c38ee61953739755443 Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Sun, 17 Jul 2022 19:41:05 -0500 Subject: [PATCH] fix: trying a split approach --- .woodpecker.yml => .woodpecker/push.yml | 10 ---------- .woodpecker/tag.yml | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 10 deletions(-) rename .woodpecker.yml => .woodpecker/push.yml (75%) create mode 100644 .woodpecker/tag.yml diff --git a/.woodpecker.yml b/.woodpecker/push.yml similarity index 75% rename from .woodpecker.yml rename to .woodpecker/push.yml index 276e5c6..e33888c 100644 --- a/.woodpecker.yml +++ b/.woodpecker/push.yml @@ -24,13 +24,3 @@ pipeline: when: event: [push] branch: main - gitea: - image: plugins/gitea-release - settings: - api_key: - from_secret: gitea_token - base_url: https://src.mfgames.com - files: exit-planning*.* - when: - event: [tag] - tag: v* diff --git a/.woodpecker/tag.yml b/.woodpecker/tag.yml new file mode 100644 index 0000000..debe9f0 --- /dev/null +++ b/.woodpecker/tag.yml @@ -0,0 +1,24 @@ +clone: + git: + image: woodpeckerci/plugin-git + settings: + tags: true + +pipeline: + build: + image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest + commands: + - nix develop --command scripts/build.sh + when: + event: [tag] + tag: v* + gitea: + image: plugins/gitea-release + settings: + api_key: + from_secret: gitea_token + base_url: https://src.mfgames.com + files: exit-planning*.* + when: + event: [tag] + tag: v*