forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
controller-gen.yaml
46 lines (40 loc) · 1.03 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
package:
name: controller-gen
version: 0.16.5
epoch: 0
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: 23a31fde6e1bb6606be870472cb5dd2d7655a5d7
- 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