mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
parent
92cc60e0d0
commit
a6a002ba92
1 changed files with 24 additions and 0 deletions
24
projects/buildpacks.io/package.yml
Normal file
24
projects/buildpacks.io/package.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
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 }}"
|
Loading…
Reference in a new issue