diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 9094610..392bab1 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -1,13 +1,14 @@ platform: 'linux/amd64' -branches: - exclude: [main] -pipeline: +when: + branch: + exclude: [main] + event: push + +steps: build: image: 'rust:1.70-alpine3.18' commands: - apk add --no-cache build-base libarchive libarchive-dev - cargo build --verbose - when: - event: [push] diff --git a/.woodpecker/clippy.yml b/.woodpecker/clippy.yml index 5f4766c..b1c86a7 100644 --- a/.woodpecker/clippy.yml +++ b/.woodpecker/clippy.yml @@ -1,13 +1,13 @@ platform: 'linux/amd64' -branches: - exclude: [main] +when: + branch: + exclude: [main] + event: push -pipeline: +steps: clippy: image: 'rust:1.70-alpine3.18' commands: - rustup component add clippy - cargo clippy -- --no-deps -Dwarnings - when: - event: [push] diff --git a/.woodpecker/docker.yml b/.woodpecker/docker.yml index 24e94e1..0bcdf4a 100644 --- a/.woodpecker/docker.yml +++ b/.woodpecker/docker.yml @@ -1,9 +1,13 @@ -branches: [dev] platform: 'linux/amd64' + +when: + branch: dev + event: push + depends_on: - build -pipeline: +steps: dev: image: 'woodpeckerci/plugin-docker-buildx' secrets: @@ -16,6 +20,3 @@ pipeline: - 'dev' platforms: [ 'linux/amd64' ] mtu: 1300 - when: - event: push - branch: dev diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 82cca61..4c09bc4 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -1,13 +1,13 @@ platform: 'linux/amd64' -branches: - exclude: [main] +when: + branch: + exclude: [main] + event: push -pipeline: +steps: lint: image: 'rust:1.70-alpine3.18' commands: - rustup component add rustfmt - cargo fmt -- --check - when: - event: [push]