exit-planning/.woodpecker.yml

37 lines
1.1 KiB
YAML
Raw Normal View History

clone:
git:
image: woodpeckerci/plugin-git
settings:
tags: true
pipeline:
2022-07-13 22:54:36 +00:00
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
2022-07-14 20:37:52 +00:00
- git branch $DRONE_BRANCH origin/$DRONE_BRANCH # semantic-release needs this locally
- git branch -a
- git tag --merged main
2022-07-13 22:54:36 +00:00
- nix develop --command scripts/release.sh
2022-07-13 23:15:53 +00:00
when:
branch: main
2022-07-13 22:54:36 +00:00
gitea:
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://src.mfgames.com
files: exit-planning*.*
2022-07-13 23:15:53 +00:00
when:
event: tag
branch: main
tag: v*