-
Notifications
You must be signed in to change notification settings - Fork 443
Expand file tree
/
Copy pathlinkerd2-proxy.yaml
More file actions
58 lines (50 loc) · 1.57 KB
/
Copy pathlinkerd2-proxy.yaml
File metadata and controls
58 lines (50 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package:
name: linkerd2-proxy
version: "2.321.0"
epoch: 0 # GHSA-xwfj-jgwm-7wp5
description: "A program that validates linkerd networks"
dependencies:
runtime:
- coreutils
- tzdata
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- cargo-auditable
- clang
- cmake
- rust
environment:
RUSTFLAGS: "--cfg tokio_unstable"
pipeline:
- uses: git-checkout
with:
repository: https://github.com/linkerd/linkerd2-proxy
tag: release/v${{package.version}}
expected-commit: ce85f16acb30d6d7ee7064c3cffd8bb81f1753f6
- uses: rust/cargobump
- runs: |
cargo fetch
cargo auditable build --frozen --release --package=linkerd2-proxy
mkdir -p ${{targets.destdir}}/usr/lib/linkerd
mv target/release/linkerd2-proxy ${{targets.destdir}}/usr/lib/linkerd
# Other packages expect this version to be declared next to the binary, it doesn't have a version subcommand.
echo ${{package.version}} > ${{targets.destdir}}/usr/lib/linkerd/linkerd2-proxy-version.txt
- uses: strip
update:
enabled: true
github:
identifier: linkerd/linkerd2-proxy
strip-prefix: release/v
tag-filter: release/v
test:
pipeline:
- runs: |
# There aren't really any flags here to get the version so just run and look for the right error
/usr/lib/linkerd/linkerd2-proxy 2>&1 | grep "no destination service configured"
cat /usr/lib/linkerd/linkerd2-proxy-version.txt | grep "${{package.version}}"