forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
haproxy-ingress.yaml
77 lines (65 loc) · 2.09 KB
/
haproxy-ingress.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
72
73
74
75
76
77
package:
name: haproxy-ingress
version: 0.14.7
epoch: 4
description: HAProxy Ingress
copyright:
- license: Apache-2.0
dependencies:
runtime:
- busybox
- dumb-init
- haproxy
- lua-json4
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- go
- wolfi-baselayout
pipeline:
- uses: git-checkout
with:
repository: https://github.com/jcmoraisjr/haproxy-ingress
tag: v${{package.version}}
expected-commit: aa2c1bd0723ba9e134701685d4ee42b5e8c5a083
- uses: go/bump
with:
deps: golang.org/x/[email protected]
- runs: |
make GOOS=$(go env GOOS) GOARCH=$(go env GOARCH) linux-build
mkdir -p ${{targets.destdir}}/usr/bin
mkdir -p ${{targets.destdir}}/haproxy-ingress
# Copy the /etc directory to the new rootfs
mv ./rootfs/etc ${{targets.destdir}}
# Move the startup scripts to /usr/bin
mv ./rootfs/*.sh ${{targets.destdir}}/usr/bin/
mkdir -p ${{targets.destdir}}/var/empty ${{targets.destdir}}/etc/lua ${{targets.destdir}}/etc/haproxy ${{targets.destdir}}/var/lib/haproxy
install -Dm755 ./rootfs/haproxy-ingress-controller ${{targets.destdir}}/usr/bin/haproxy-ingress-controller
- uses: strip
subpackages:
- name: "haproxy-ingress-compat"
description: "Compatibility package to place binaries in the location expected by upstream start.sh script"
pipeline:
- runs: |
# The helm chart expects the haproxy-ingress-compat binaries to be in / instead of /usr/bin
mkdir -p "${{targets.subpkgdir}}"
ln -sf /usr/bin/haproxy-ingress-controller ${{targets.subpkgdir}}/haproxy-ingress-controller
for script in start.sh haproxy-shutdown.sh haproxy-reload.sh; do
ln -sf /usr/bin/$script ${{targets.subpkgdir}}/$script
done
- uses: strip
update:
enabled: true
github:
identifier: jcmoraisjr/haproxy-ingress
strip-prefix: v
use-tag: true
tag-filter: v
test:
pipeline:
# AUTOGENERATED
- runs: |
haproxy-ingress-controller --version