exit-planning/.woodpecker.yml

33 lines
981 B
YAML

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
test:
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
commands:
- nix develop --command scripts/test.sh
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
- nix develop --command scripts/release.sh
when:
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
branch: main
tag: v*