Skip to content

Commit 3ffd43d

Browse files
authored
Merge pull request #8 from windsource/5_selective_scope
Selective scope
2 parents 46fc8e1 + 1e4965f commit 3ffd43d

File tree

10 files changed

+858
-333
lines changed

10 files changed

+858
-333
lines changed

.woodpecker.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ variables:
22
- &rust 'rust:1.72.0-bookworm'
33
- &buildx_plugin 'woodpeckerci/plugin-docker-buildx:2.1.0'
44

5+
clone:
6+
git:
7+
image: woodpeckerci/plugin-git:2.2.0
8+
when:
9+
- event: pull_request
10+
- event: [push, tag, manual]
11+
branch: main
12+
13+
514
pipeline:
615
build-x86:
716
image: *rust
@@ -11,7 +20,11 @@ pipeline:
1120
- cargo build --release
1221
- mkdir -p target/linux/amd64
1322
- cp target/release/picus target/linux/amd64/picus
14-
23+
when:
24+
- event: pull_request
25+
- event: [push, tag, manual]
26+
branch: main
27+
1528
build-arm64:
1629
image: *rust
1730
commands:
@@ -24,6 +37,10 @@ pipeline:
2437
- RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc" PKG_CONFIG_SYSROOT_DIR=/ cargo build --target aarch64-unknown-linux-gnu --release
2538
- mkdir -p target/linux/arm64
2639
- cp target/aarch64-unknown-linux-gnu/release/picus target/linux/arm64/
40+
when:
41+
- event: pull_request
42+
- event: [push, tag, manual]
43+
branch: main
2744

2845
publish-distroless:
2946
image: *buildx_plugin

0 commit comments

Comments
 (0)