-
Notifications
You must be signed in to change notification settings - Fork 289
/
Copy pathflux-image-automation-controller.yaml
58 lines (51 loc) · 1.48 KB
/
flux-image-automation-controller.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
package:
name: flux-image-automation-controller
version: 0.37.1
epoch: 2
description: GitOps Toolkit controller that patches container image tags in Git
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- clang-16
- gcc
- go
- llvm-lld-16
pipeline:
- uses: git-checkout
with:
expected-commit: 6e093957e172589dc8f734744ebc579f132d3bf6
repository: https://github.com/fluxcd/image-automation-controller
tag: v${{package.version}}
- uses: go/bump
with:
deps: google.golang.org/[email protected]
- runs: |
mkdir -p "${{targets.destdir}}"/usr/bin
CGO_ENABLED=1 CGO_LDFLAGS="-static -fuse-ld=lld" go build \
-ldflags "-s -w" \
-tags 'netgo,osusergo,static_build' \
-trimpath -o "${{targets.destdir}}"/usr/bin/image-automation-controller .
- uses: strip
subpackages:
- name: flux-image-automation-controller-compat
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/local/bin
# The upstream helm chart assumes the binary is in /.
ln -sf /usr/bin/image-automation-controller ${{targets.subpkgdir}}/usr/local/bin/image-automation-controller
dependencies:
runtime:
- flux-image-automation-controller
update:
enabled: true
ignore-regex-patterns:
- api/
github:
identifier: fluxcd/image-automation-controller
strip-prefix: v
use-tag: true
tag-filter: v