chore(ci): modernize config
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/clippy Pipeline failed Details
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details

db-centric-repos
Jef Roosens 2023-08-13 20:24:34 +02:00
parent 3b2d6dec87
commit fcb3a18416
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
4 changed files with 22 additions and 20 deletions

View File

@ -1,13 +1,14 @@
platform: 'linux/amd64' platform: 'linux/amd64'
branches:
exclude: [main]
pipeline: when:
branch:
exclude: [main]
event: push
steps:
build: build:
image: 'rust:1.70-alpine3.18' image: 'rust:1.70-alpine3.18'
commands: commands:
- apk add --no-cache build-base libarchive libarchive-dev - apk add --no-cache build-base libarchive libarchive-dev
- cargo build --verbose - cargo build --verbose
when:
event: [push]

View File

@ -1,13 +1,13 @@
platform: 'linux/amd64' platform: 'linux/amd64'
branches: when:
exclude: [main] branch:
exclude: [main]
event: push
pipeline: steps:
clippy: clippy:
image: 'rust:1.70-alpine3.18' image: 'rust:1.70-alpine3.18'
commands: commands:
- rustup component add clippy - rustup component add clippy
- cargo clippy -- --no-deps -Dwarnings - cargo clippy -- --no-deps -Dwarnings
when:
event: [push]

View File

@ -1,9 +1,13 @@
branches: [dev]
platform: 'linux/amd64' platform: 'linux/amd64'
when:
branch: dev
event: push
depends_on: depends_on:
- build - build
pipeline: steps:
dev: dev:
image: 'woodpeckerci/plugin-docker-buildx' image: 'woodpeckerci/plugin-docker-buildx'
secrets: secrets:
@ -16,6 +20,3 @@ pipeline:
- 'dev' - 'dev'
platforms: [ 'linux/amd64' ] platforms: [ 'linux/amd64' ]
mtu: 1300 mtu: 1300
when:
event: push
branch: dev

View File

@ -1,13 +1,13 @@
platform: 'linux/amd64' platform: 'linux/amd64'
branches: when:
exclude: [main] branch:
exclude: [main]
event: push
pipeline: steps:
lint: lint:
image: 'rust:1.70-alpine3.18' image: 'rust:1.70-alpine3.18'
commands: commands:
- rustup component add rustfmt - rustup component add rustfmt
- cargo fmt -- --check - cargo fmt -- --check
when:
event: [push]