-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathk3d.yaml
81 lines (72 loc) · 2.04 KB
/
k3d.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
78
79
80
81
package:
name: k3d
version: 5.6.0
epoch: 6
description: Little helper to run CNCF's k3s in Docker
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- curl
- git
- go
pipeline:
- uses: git-checkout
with:
repository: https://github.com/k3d-io/k3d
tag: v${{package.version}}
expected-commit: 9748b1e158f3a03e807c6a989edc0fee856ff5a2
- uses: go/bump
with:
deps: golang.org/x/[email protected] github.com/docker/[email protected] golang.org/x/[email protected] github.com/opencontainers/[email protected] github.com/containerd/[email protected]
- runs: |
make build
install -Dm755 ./bin/k3d ${{targets.destdir}}/usr/bin/k3d
- uses: strip
subpackages:
- name: k3d-tools
description: ""
pipeline:
- uses: go/build
with:
modroot: ./tools
packages: .
output: k3d-tools
subpackage: "true"
ldflags: "-w"
- uses: strip
- name: k3d-proxy
description: ""
dependencies:
runtime:
- nginx
pipeline:
- working-directory: proxy
runs: |
install -Dm755 nginx-proxy "${{targets.subpkgdir}}"/usr/bin/nginx-proxy
mkdir -p "${{targets.subpkgdir}}"/etc/confd
cp -ar templates "${{targets.subpkgdir}}"/etc/confd/
cp -ar conf.d "${{targets.subpkgdir}}"/etc/confd/
- uses: git-checkout
with:
repository: https://github.com/iwilltry42/confd
tag: v0.17.0 # NOTE: This pins us to a tag that we can't auto-bump, but this hasn't been updated in years
expected-commit: 6b806c9d9cf66333ca41f9b9175508db0e222a0b
destination: /home/confd
- uses: go/build
with:
modroot: /home/confd
packages: .
output: confd
subpackage: "true"
ldflags: "-w -X main.GitSHA=$(git rev-parse --short HEAD)"
- uses: strip
update:
enabled: true
github:
identifier: k3d-io/k3d
strip-prefix: v