exit-planning/.woodpecker.yml

48 lines
1.2 KiB
YAML
Raw Permalink 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
2022-12-21 00:05:25 +00:00
when:
2022-12-30 23:58:55 +00:00
event: [push, tag, manual]
tag: v*
2022-12-30 23:15:54 +00:00
branch: main
2022-12-21 00:05:25 +00:00
test:
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
commands:
2022-07-13 22:54:36 +00:00
- nix develop --command scripts/test.sh
when:
2022-12-30 23:15:54 +00:00
event: [push, manual]
branch: main
2022-12-21 00:05:25 +00:00
release-main:
2022-07-13 22:54:36 +00:00
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
commands:
- nix develop --command scripts/release.sh
2022-07-14 22:03:24 +00:00
secrets:
- gitea_token
2022-07-14 22:30:57 +00:00
- git_credentials
2022-07-13 23:15:53 +00:00
when:
2022-12-30 23:15:54 +00:00
event: [push, manual]
2022-07-13 23:15:53 +00:00
branch: main
2022-12-21 00:05:25 +00:00
release-gitea:
image: plugins/gitea-release
settings:
base_url: https://src.mfgames.com
files:
- "*.pdf"
- "*.epub"
api_key:
from_secret: gitea_token
when:
2022-12-30 23:58:55 +00:00
event: tag
tag: v*