ci: working on setup
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending

This commit is contained in:
D. Moonfire 2022-12-20 18:05:25 -06:00
parent 3ed2109479
commit 1503631669
2 changed files with 23 additions and 27 deletions

View file

@ -9,10 +9,18 @@ pipeline:
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
commands: commands:
- nix develop --command scripts/build.sh - 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 - nix develop --command scripts/test.sh
when: when:
event: [push, pull_request] event: [push, pull_request]
release:
release-main:
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
commands: commands:
- export DRONE="true" # Required to convince `env-ci` that it is a known CI - export DRONE="true" # Required to convince `env-ci` that it is a known CI
@ -22,5 +30,18 @@ pipeline:
- gitea_token - gitea_token
- git_credentials - git_credentials
when: when:
event: [push] event: push
branch: main 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,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*