mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 12:35:10 +03:00
43d80ff351
closes #4339
36 lines
833 B
YAML
36 lines
833 B
YAML
distributable:
|
|
url: https://github.com/kubernetes-sigs/kustomize/archive/refs/tags/kustomize/v{{ version }}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: kubernetes-sigs/kustomize
|
|
strip: /kustomize\/v/
|
|
|
|
provides:
|
|
- bin/kustomize
|
|
|
|
dependencies:
|
|
kubernetes.io/kubectl: '*'
|
|
|
|
build:
|
|
dependencies:
|
|
go.dev: ^1.18
|
|
linux:
|
|
gnu.org/gcc: '*' # aarch64 wants `ld.gold`
|
|
env:
|
|
GOBIN: '{{prefix}}/bin'
|
|
GO111MODULE: on
|
|
LDFLAGS:
|
|
- -s
|
|
- -w
|
|
- -X=sigs.k8s.io/kustomize/api/provenance.version=kustomize/v{{version}}
|
|
linux:
|
|
# https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
|
LDFLAGS:
|
|
- -buildmode=pie
|
|
script: go install -v -ldflags="$LDFLAGS" ./kustomize
|
|
|
|
test:
|
|
script: |
|
|
test "$(kustomize version) = {{ version }}"
|
|
kustomize build .
|