Skip to content

Commit

Permalink
+cloudnative-pg (#8307)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Heider <[email protected]>
  • Loading branch information
leonardoce and jhheider authored Jan 3, 2025
1 parent 87fa9e3 commit 60fda17
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions projects/cloudnative-pg.io/package.yml
Original file line number Diff line number Diff line change
@@ -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}} "

0 comments on commit 60fda17

Please sign in to comment.