build(woodpecker): merge and rename jobs
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:
parent
8ad84bc72b
commit
ca30d1bd11
5 changed files with 33 additions and 35 deletions
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue