47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
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
|
|
when:
|
|
event: [push, tag, manual]
|
|
tag: v*
|
|
branch: main
|
|
|
|
test:
|
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
|
commands:
|
|
- nix develop --command scripts/test.sh
|
|
when:
|
|
event: [push, manual]
|
|
branch: main
|
|
|
|
release-main:
|
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
|
commands:
|
|
- nix develop --command scripts/release.sh
|
|
secrets:
|
|
- gitea_token
|
|
- git_credentials
|
|
when:
|
|
event: [push, manual]
|
|
branch: main
|
|
|
|
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*
|