chore: minor updates
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
D. Moonfire 2022-12-31 16:08:41 -06:00
parent ac0d62eb29
commit 42648eab72
3 changed files with 47 additions and 53 deletions

47
.woodpecker.yml Normal file
View File

@ -0,0 +1,47 @@
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*

View File

@ -1,26 +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
- nix develop --command scripts/test.sh
when:
event: [push, pull_request]
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
- git branch $DRONE_BRANCH origin/$DRONE_BRANCH # semantic-release needs this locally
- nix develop --command scripts/release.sh
secrets:
- gitea_token
- git_credentials
when:
event: [push]
branch: main

View File

@ -1,27 +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:
- "*.pdf"
- "*.epub"
secrets:
- source: gitea_token
target: plugin_api_key
when:
event: [tag]
tag: v*