-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathmetallb.yaml
71 lines (61 loc) · 1.77 KB
/
metallb.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
package:
name: metallb
version: 0.14.3
epoch: 0
description: "A network load-balancer implementation for Kubernetes using standard routing protocols"
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- go
- wolfi-base
pipeline:
- uses: git-checkout
with:
repository: https://github.com/metallb/metallb
tag: v${{package.version}}
expected-commit: 7051d76ac2a6cde09927be774ca5ad72ff30175a
- uses: go/build
with:
packages: ./controller
ldflags: -s -w
output: metallb-controller
- uses: go/build
with:
packages: ./frr-tools/metrics
ldflags: -s -w
output: metallb-frr-metrics
- uses: go/build
with:
packages: ./speaker
ldflags: -s -w
output: metallb-speaker
- uses: strip
subpackages:
- name: metallb-controller
pipeline:
- runs: |
install -Dm755 "${{targets.destdir}}"/usr/bin/metallb-controller "${{targets.subpkgdir}}"/usr/bin/metallb-controller
- name: metallb-frr
pipeline:
- runs: |
install -Dm755 "${{targets.destdir}}"/usr/bin/metallb-frr-metrics "${{targets.subpkgdir}}"/usr/bin/metallb-frr-metrics
install frr-tools/reloader/frr-reloader.sh "${{targets.subpkgdir}}"/usr/bin/frr-reloader.sh
- name: metallb-speaker
pipeline:
- runs: |
# Ref: https://github.com/metallb/metallb/blob/main/speaker/Dockerfile
install -Dm755 "${{targets.destdir}}"/usr/bin/metallb-speaker "${{targets.subpkgdir}}"/usr/bin/metallb-speaker
dependencies:
runtime:
- bash # required by frr-reloader.sh
- metallb-frr
update:
enabled: true
github:
identifier: metallb/metallb
strip-prefix: v
tag-filter: v