2022-07-18 04:39:05 +00:00
|
|
|
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
|
2022-07-19 23:58:05 +00:00
|
|
|
when:
|
2022-12-31 22:08:35 +00:00
|
|
|
event: [push, tag, manual]
|
2022-07-19 23:58:05 +00:00
|
|
|
tag: v*
|
2022-12-31 22:08:35 +00:00
|
|
|
branch: main
|
2022-07-19 23:58:05 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
|
|
|
commands:
|
2022-07-18 04:39:05 +00:00
|
|
|
- nix develop --command scripts/test.sh
|
|
|
|
when:
|
2022-12-31 22:08:35 +00:00
|
|
|
event: [push, manual]
|
|
|
|
branch: main
|
2022-07-19 23:58:05 +00:00
|
|
|
|
|
|
|
release-main:
|
2022-07-18 04:39:05 +00:00
|
|
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
|
|
|
commands:
|
|
|
|
- nix develop --command scripts/release.sh
|
|
|
|
secrets:
|
|
|
|
- gitea_token
|
|
|
|
- git_credentials
|
|
|
|
when:
|
2022-12-31 22:08:35 +00:00
|
|
|
event: [push, manual]
|
2022-07-18 04:39:05 +00:00
|
|
|
branch: main
|
2022-07-19 23:58:05 +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:
|
|
|
|
event: tag
|
|
|
|
tag: v*
|