More build tweaking
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
when:
|
||||
- event: push
|
||||
branch: master
|
||||
- event: pull_request
|
||||
branch: master
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: woodpeckerci/plugin-git
|
||||
@@ -19,6 +13,17 @@ steps:
|
||||
- rustup component add clippy rustfmt
|
||||
- cargo fmt --check
|
||||
- cargo clippy -- -D warnings
|
||||
volumes:
|
||||
- /woodpecker/cargo/registry:/usr/local/cargo/registry
|
||||
when:
|
||||
- event: [push, pull_request]
|
||||
path:
|
||||
include:
|
||||
- src/**/*
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- Dockerfile
|
||||
- .woodpecker/*
|
||||
|
||||
- name: build docker image
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
@@ -35,4 +40,11 @@ steps:
|
||||
platforms: linux/amd64
|
||||
when:
|
||||
- event: push
|
||||
branch: master
|
||||
branch: master
|
||||
path:
|
||||
include:
|
||||
- src/**/*
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- Dockerfile
|
||||
- .woodpecker/*
|
||||
Reference in New Issue
Block a user