2024-04-08 17:55:41 +01:00
|
|
|
steps:
|
|
|
|
update-builder-image:
|
|
|
|
when:
|
|
|
|
- event: cron
|
2024-10-09 14:01:51 +01:00
|
|
|
image: docker.io/woodpeckerci/plugin-docker-buildx:5.0
|
2024-04-08 17:55:41 +01:00
|
|
|
settings:
|
|
|
|
username: kemitix
|
|
|
|
repo: git.kemitix.net/kemitix/kxio-builder
|
|
|
|
auto_tag: true
|
|
|
|
dockerfile: Dockerfile.builder
|
|
|
|
dry-run: false # push to remote repo
|
|
|
|
registry: git.kemitix.net
|
|
|
|
password:
|
|
|
|
from_secret: woodpecker-docker-push
|
2024-04-28 11:34:19 +01:00
|
|
|
|
2024-04-08 17:55:41 +01:00
|
|
|
todo_check:
|
|
|
|
# INFO: https://woodpecker-ci.org/plugins/TODO-Checker
|
|
|
|
image: codeberg.org/epsilon_02/todo-checker:1.1
|
|
|
|
when:
|
|
|
|
- event: push
|
2024-04-16 07:21:19 +01:00
|
|
|
branch: [main, next]
|
2024-04-08 17:55:41 +01:00
|
|
|
settings:
|
|
|
|
# kxio-woodpecker-todo-checker - read:issue
|
2024-04-28 11:34:19 +01:00
|
|
|
repository_token: "4acf14f93747e044aa2d1397367741b53f3d4f8f"
|
|
|
|
prefix_regex: "(#|//) (TODO|FIXME): "
|
2024-04-08 17:55:41 +01:00
|
|
|
debug: false
|
|
|
|
|
2024-04-10 07:36:54 +01:00
|
|
|
lint_and_build:
|
2024-04-08 17:55:41 +01:00
|
|
|
when:
|
|
|
|
- event: push
|
2024-04-16 07:21:19 +01:00
|
|
|
branch: [main, next]
|
2024-04-08 17:55:41 +01:00
|
|
|
- event: tag
|
|
|
|
image: git.kemitix.net/kemitix/kxio-builder:latest
|
|
|
|
environment:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
commands:
|
|
|
|
- ls -l /usr/local/cargo/bin/
|
|
|
|
- cargo fmt --all -- --check
|
2024-04-28 11:34:42 +01:00
|
|
|
- cargo clippy --features "fs,network" -- -D warnings -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used
|
|
|
|
- cargo build --features "fs,network"
|
2024-04-08 17:55:41 +01:00
|
|
|
|
|
|
|
test:
|
|
|
|
when:
|
|
|
|
- event: push
|
2024-04-16 07:21:19 +01:00
|
|
|
branch: [main, next]
|
2024-04-08 17:55:41 +01:00
|
|
|
- event: tag
|
|
|
|
image: git.kemitix.net/kemitix/kxio-builder:latest
|
|
|
|
environment:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
commands:
|
2024-04-28 11:34:42 +01:00
|
|
|
- cargo test --features "fs,network"
|
2024-04-28 11:34:19 +01:00
|
|
|
|
2024-04-10 07:33:41 +01:00
|
|
|
publish_to_crates_io:
|
|
|
|
when:
|
|
|
|
- event: tag
|
2024-10-18 00:46:58 +01:00
|
|
|
image: docker.io/rust:1.82
|
2024-04-10 07:33:41 +01:00
|
|
|
commands:
|
|
|
|
- cargo login "$CARGO_REGISTRY_TOKEN"
|
|
|
|
- cargo publish --registry crates-io --no-verify
|
|
|
|
secrets: [cargo_registry_token]
|
|
|
|
|
2024-04-08 17:55:41 +01:00
|
|
|
publish_to_forgejo:
|
|
|
|
when:
|
|
|
|
- event: tag
|
|
|
|
# INFO: https://woodpecker-ci.org/plugins/Gitea%20Release
|
2024-04-30 07:44:30 +01:00
|
|
|
image: docker.io/woodpeckerci/plugin-gitea-release:latest
|
2024-04-08 17:55:41 +01:00
|
|
|
settings:
|
|
|
|
base_url: https://git.kemitix.net
|
|
|
|
api_key:
|
|
|
|
from_secret: FORGEJO_RELEASE_PLUGIN
|
|
|
|
target: main
|
2024-04-28 15:35:45 +01:00
|
|
|
prerelease: false
|