ci(woodpecker): adding initial setup

This commit is contained in:
D. Moonfire 2022-07-17 23:16:38 -05:00
parent 7c5650deae
commit ab4e0ec541
2 changed files with 51 additions and 0 deletions

26
.woodpecker/push.yml Normal file
View file

@ -0,0 +1,26 @@
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
- nix develop --command scripts/test.sh
when:
event: [push, pull_request]
release:
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
commands:
- export DRONE="true" # Required to convince `env-ci` that it is a known CI
- git branch $DRONE_BRANCH origin/$DRONE_BRANCH # semantic-release needs this locally
- nix develop --command scripts/release.sh
secrets:
- gitea_token
- git_credentials
when:
event: [push]
branch: main

25
.woodpecker/tag.yml Normal file
View file

@ -0,0 +1,25 @@
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:
base_url: https://src.mfgames.com
files: exit-planning*.*
secrets:
- source: gitea_token
target: plugin_api_key
when:
event: [tag]
tag: v*