From 60fda17c0f4eff4216aa8d48838c3d6a6c5d6db2 Mon Sep 17 00:00:00 2001 From: Leonardo Cecchi Date: Fri, 3 Jan 2025 18:33:01 +0100 Subject: [PATCH] +cloudnative-pg (#8307) Co-authored-by: Jacob Heider --- projects/cloudnative-pg.io/package.yml | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 projects/cloudnative-pg.io/package.yml diff --git a/projects/cloudnative-pg.io/package.yml b/projects/cloudnative-pg.io/package.yml new file mode 100644 index 0000000000..bb4dd935b7 --- /dev/null +++ b/projects/cloudnative-pg.io/package.yml @@ -0,0 +1,28 @@ +distributable: + url: https://github.com/cloudnative-pg/cloudnative-pg/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +versions: + github: cloudnative-pg/cloudnative-pg + +provides: + - bin/kubectl-cnpg + +build: + dependencies: + go.dev: ~1.23 + script: + - go mod download + - go build -v -trimpath -ldflags="$GO_LDFLAGS" -o '{{prefix}}/bin/kubectl-cnpg' ./cmd/kubectl-cnpg/main.go + env: + linux: + GO_LDFLAGS: + - -buildmode=pie + GO111MODULE: on + CGO_ENABLED: 0 + GO_LDFLAGS: + - -s + - -w + - -X github.com/cloudnative-pg/cloudnative-pg/pkg/versions.buildVersion={{ version }} + +test: kubectl-cnpg version | grep "Version:{{version}} "