-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathcontroller-gen.yaml
52 lines (45 loc) · 1.13 KB
/
controller-gen.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
package:
name: controller-gen
version: "0.17.2"
epoch: 1
description: Tools to use with the controller-runtime libraries
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- go
environment:
CGO_ENABLED: "0"
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kubernetes-sigs/controller-tools
tag: v${{package.version}}
expected-commit: bbc5992bea18ec30b2e8cee99bcdd5c063ef8fbe
- uses: go/bump
with:
deps: |-
golang.org/x/net@v0.36.0
modroot: .
- uses: go/build
with:
packages: ./cmd/controller-gen
modroot: .
output: controller-gen
ldflags: -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
- uses: strip
update:
enabled: true
github:
identifier: kubernetes-sigs/controller-tools
strip-prefix: v
tag-filter: v
use-tag: true
test:
pipeline:
- runs: |
controller-gen --version
controller-gen --help