forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flux.yaml
62 lines (53 loc) · 1.47 KB
/
flux.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
package:
name: flux
version: 2.4.0
epoch: 1
description: Open and extensible continuous delivery solution for Kubernetes. Powered by GitOps Toolkit.
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- bash
- build-base
- busybox
- ca-certificates-bundle
- curl
- git
- go
- kustomize
pipeline:
- uses: git-checkout
with:
expected-commit: 5350425cdcd5fa015337e09fa502153c0275bd4b
repository: https://github.com/fluxcd/flux2
tag: v${{package.version}}
- uses: go/bump
with:
deps: golang.org/x/[email protected]
- runs: |
mkdir -p "${{targets.destdir}}"/usr/bin
VERSION=${{package.version}} make build
install -Dm755 bin/flux ${{targets.destdir}}/usr/bin/flux
- runs: |
${{targets.destdir}}/usr/bin/flux version --client| grep "flux: v${{package.version}}"
- uses: strip
subpackages:
- name: "flux-compat"
description: "Compatibility package to place binaries in the location expected by upstream helm charts"
pipeline:
- runs: |
# The helm chart expects the flux binaries to be in /usr/local/bin instead of /usr/bin
mkdir -p "${{targets.subpkgdir}}"/usr/local/bin
ln -sf /usr/bin/flux ${{targets.subpkgdir}}/usr/local/bin/flux
update:
enabled: true
github:
identifier: fluxcd/flux2
strip-prefix: v
test:
pipeline:
# AUTOGENERATED
- runs: |
flux --version
flux --help