diff --git a/projects/fluxcd.io/flux2/package.yml b/projects/fluxcd.io/flux2/package.yml new file mode 100644 index 00000000..ed430f14 --- /dev/null +++ b/projects/fluxcd.io/flux2/package.yml @@ -0,0 +1,29 @@ +# https://fluxcd.io/ + +distributable: + url: git+https://github.com/fluxcd/flux2 + ref: v{{version}} + +versions: + github: fluxcd/flux2 + strip: /^v/ + +build: + dependencies: + go.dev: ^1.20 + kubernetes.io/kustomize: ^5 + gnu.org/make: "*" + git-scm.org: "*" + script: | + make build VERSION={{version}} + mkdir -p "{{ prefix }}"/bin + mv bin/flux "{{ prefix }}"/bin + +provides: + - bin/flux + +test: + script: | + test "$(flux --version)" = "flux version {{version}}" + flux install --export > flux-system.yml + test -f flux-system.yml