chore(ci): modernize config
parent
3b2d6dec87
commit
fcb3a18416
|
@ -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]
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue