build(woodpecker): merge and rename jobs
All checks were successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful

build(woodpecker): only run checks against next branch

Merges todo-check into main job.
Rename file build as push-next
Run lint ahead of build

build(woodpecker): rename builder as cron-docker-builder

build(woodpecker): merge release and docker into tag-created
This commit is contained in:
Paul Campbell 2024-04-10 07:08:39 +01:00
parent 8ad84bc72b
commit ca30d1bd11
5 changed files with 33 additions and 35 deletions

View file

@ -1,17 +1,21 @@
steps:
build:
todo_check:
# INFO: https://woodpecker-ci.org/plugins/TODO-Checker
image: codeberg.org/epsilon_02/todo-checker:1.1
when:
- event: push
branch: [main, next]
image: git.kemitix.net/kemitix/git-next-builder:latest
environment:
CARGO_TERM_COLOR: always
branch: next
settings:
# git-next-woodpecker-todo-checker - read:issue
repository_token: '776a3b928b852472c2af727a360c85c00af64b9f'
prefix_regex: "(#|//) (TODO|FIXME): "
debug: false
lint:
when:
- event: push
branch: [main, next]
branch: next
image: git.kemitix.net/kemitix/git-next-builder:latest
environment:
CARGO_TERM_COLOR: always
@ -20,10 +24,18 @@ steps:
- cargo fmt --all -- --check
- cargo clippy -- -D warnings -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used
build:
when:
- event: push
branch: next
image: git.kemitix.net/kemitix/git-next-builder:latest
environment:
CARGO_TERM_COLOR: always
test:
when:
- event: push
branch: [main, next]
branch: next
image: git.kemitix.net/kemitix/git-next-builder:latest
environment:
CARGO_TERM_COLOR: always

View file

@ -1,14 +0,0 @@
# INFO: https://woodpecker-ci.org/plugins/Gitea%20Release
steps:
publish:
when:
- event: tag
ref: refs/tags/v*
image: docker.io/woodpeckerci/plugin-gitea-release:0.3.1
settings:
base_url: https://git.kemitix.net
api_key:
from_secret: FORGEJO_RELEASE_PLUGIN
target: main
prerelease: true

View file

@ -1,10 +1,23 @@
# INFO: https://woodpecker-ci.org/plugins/Docker%20Buildx
steps:
publish-to-forgejo:
when:
- event: tag
ref: refs/tags/v*
# INFO: https://woodpecker-ci.org/plugins/Gitea%20Release
image: docker.io/woodpeckerci/plugin-gitea-release:0.3.1
settings:
base_url: https://git.kemitix.net
api_key:
from_secret: FORGEJO_RELEASE_PLUGIN
target: main
prerelease: true
docker-build:
when:
- event: tag
ref: refs/tags/v*
# INFO: https://woodpecker-ci.org/plugins/Docker%20Buildx
image: docker.io/woodpeckerci/plugin-docker-buildx:3.2.1
settings:
username: kemitix

View file

@ -1,13 +0,0 @@
# INFO: https://woodpecker-ci.org/plugins/TODO-Checker
steps:
todo_check:
image: codeberg.org/epsilon_02/todo-checker:1.1
when:
- event: push
branch: [main, next]
settings:
# git-next-woodpecker-todo-checker - read:issue
repository_token: '776a3b928b852472c2af727a360c85c00af64b9f'
prefix_regex: "(#|//) (TODO|FIXME): "
debug: false