mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 10:25:05 +03:00
a6a002ba92
closes #6092
24 lines
515 B
YAML
24 lines
515 B
YAML
distributable:
|
|
url: https://github.com/buildpacks/pack/archive/refs/tags/{{version.tag}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: buildpacks/pack
|
|
|
|
build:
|
|
dependencies:
|
|
go.dev: ^1.22
|
|
script: go build -v -ldflags="${GO_LDFLAGS}" -o "{{ prefix }}"/bin/pack ./cmd/pack
|
|
env:
|
|
GO_LDFLAGS:
|
|
- -s
|
|
- -w
|
|
- -X github.com/buildpacks/pack.Version={{ version }}
|
|
linux:
|
|
GO_LDFLAGS:
|
|
- -buildmode=pie
|
|
|
|
provides:
|
|
- bin/pack
|
|
|
|
test: test "$(pack version)" = "{{ version }}"
|