forked from kemitix/git-next
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:
|
steps:
|
||||||
|
|
||||||
build:
|
todo_check:
|
||||||
|
# INFO: https://woodpecker-ci.org/plugins/TODO-Checker
|
||||||
|
image: codeberg.org/epsilon_02/todo-checker:1.1
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: [main, next]
|
branch: next
|
||||||
image: git.kemitix.net/kemitix/git-next-builder:latest
|
settings:
|
||||||
environment:
|
# git-next-woodpecker-todo-checker - read:issue
|
||||||
CARGO_TERM_COLOR: always
|
repository_token: '776a3b928b852472c2af727a360c85c00af64b9f'
|
||||||
|
prefix_regex: "(#|//) (TODO|FIXME): "
|
||||||
|
debug: false
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: [main, next]
|
branch: next
|
||||||
image: git.kemitix.net/kemitix/git-next-builder:latest
|
image: git.kemitix.net/kemitix/git-next-builder:latest
|
||||||
environment:
|
environment:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
@ -20,10 +24,18 @@ steps:
|
||||||
- cargo fmt --all -- --check
|
- cargo fmt --all -- --check
|
||||||
- cargo clippy -- -D warnings -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used
|
- 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:
|
test:
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: [main, next]
|
branch: next
|
||||||
image: git.kemitix.net/kemitix/git-next-builder:latest
|
image: git.kemitix.net/kemitix/git-next-builder:latest
|
||||||
environment:
|
environment:
|
||||||
CARGO_TERM_COLOR: always
|
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:
|
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:
|
docker-build:
|
||||||
when:
|
when:
|
||||||
- event: tag
|
- event: tag
|
||||||
ref: refs/tags/v*
|
ref: refs/tags/v*
|
||||||
|
# INFO: https://woodpecker-ci.org/plugins/Docker%20Buildx
|
||||||
image: docker.io/woodpeckerci/plugin-docker-buildx:3.2.1
|
image: docker.io/woodpeckerci/plugin-docker-buildx:3.2.1
|
||||||
settings:
|
settings:
|
||||||
username: kemitix
|
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