2024-04-07 16:03:28 +01:00
|
|
|
steps:
|
2024-04-07 17:27:05 +01:00
|
|
|
|
2024-04-07 16:03:28 +01:00
|
|
|
update-builder-image:
|
|
|
|
when:
|
|
|
|
- event: cron
|
|
|
|
image: docker.io/woodpeckerci/plugin-docker-buildx:latest
|
|
|
|
settings:
|
|
|
|
username: kemitix
|
|
|
|
repo: git.kemitix.net/kemitix/git-next-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-07 17:27:05 +01:00
|
|
|
|
2024-04-07 16:03:28 +01:00
|
|
|
build:
|
2024-04-07 17:27:05 +01:00
|
|
|
when:
|
|
|
|
- event: push
|
2024-04-09 19:34:00 +01:00
|
|
|
branch: [main, next]
|
2024-04-07 16:03:28 +01:00
|
|
|
image: git.kemitix.net/kemitix/git-next-builder:latest
|
|
|
|
environment:
|
|
|
|
CARGO_TERM_COLOR: always
|
2024-04-07 17:27:05 +01:00
|
|
|
|
2024-04-07 16:03:28 +01:00
|
|
|
lint:
|
2024-04-07 17:27:05 +01:00
|
|
|
when:
|
|
|
|
- event: push
|
2024-04-09 19:34:00 +01:00
|
|
|
branch: [main, next]
|
2024-04-07 16:03:28 +01:00
|
|
|
image: git.kemitix.net/kemitix/git-next-builder:latest
|
|
|
|
environment:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
commands:
|
|
|
|
- ls -l /usr/local/cargo/bin/
|
|
|
|
- cargo fmt --all -- --check
|
|
|
|
- cargo clippy -- -D warnings -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used
|
2024-04-07 17:27:05 +01:00
|
|
|
|
2024-04-07 16:03:28 +01:00
|
|
|
test:
|
2024-04-07 17:27:05 +01:00
|
|
|
when:
|
|
|
|
- event: push
|
2024-04-09 19:34:00 +01:00
|
|
|
branch: [main, next]
|
2024-04-07 16:03:28 +01:00
|
|
|
image: git.kemitix.net/kemitix/git-next-builder:latest
|
|
|
|
environment:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
commands:
|
|
|
|
- cargo test
|