This commit is contained in:
parent
3ed2109479
commit
1503631669
2 changed files with 23 additions and 27 deletions
|
@ -9,10 +9,18 @@ pipeline:
|
|||
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
||||
commands:
|
||||
- nix develop --command scripts/build.sh
|
||||
when:
|
||||
event: [push, pull_request, tag]
|
||||
tag: v*
|
||||
|
||||
test:
|
||||
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
||||
commands:
|
||||
- nix develop --command scripts/test.sh
|
||||
when:
|
||||
event: [push, pull_request]
|
||||
release:
|
||||
|
||||
release-main:
|
||||
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
||||
commands:
|
||||
- export DRONE="true" # Required to convince `env-ci` that it is a known CI
|
||||
|
@ -22,5 +30,18 @@ pipeline:
|
|||
- gitea_token
|
||||
- git_credentials
|
||||
when:
|
||||
event: [push]
|
||||
event: push
|
||||
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*
|
|
@ -1,25 +0,0 @@
|
|||
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: [tag]
|
||||
tag: v*
|
||||
gitea:
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
base_url: https://src.mfgames.com
|
||||
files: exit-planning*.*
|
||||
secrets:
|
||||
- source: gitea_token
|
||||
target: plugin_api_key
|
||||
when:
|
||||
event: [tag]
|
||||
tag: v*
|
Loading…
Reference in a new issue