git-next/.woodpecker/build.yml

45 lines
1.1 KiB
YAML

steps:
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
build:
when:
- event: push
branch: [main, next]
image: git.kemitix.net/kemitix/git-next-builder:latest
environment:
CARGO_TERM_COLOR: always
lint:
when:
- event: push
branch: [main, next]
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
test:
when:
- event: push
branch: [main, next]
image: git.kemitix.net/kemitix/git-next-builder:latest
environment:
CARGO_TERM_COLOR: always
commands:
- cargo test