mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
add buildkit
This commit is contained in:
parent
f87861021c
commit
0c742fe752
32
projects/github.com/moby/buildkit/package.yml
Normal file
32
projects/github.com/moby/buildkit/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
distributable:
|
||||
url: https://github.com/moby/buildkit/archive/refs/tags/v{{ version }}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
display-name: buildkit
|
||||
|
||||
versions:
|
||||
github: moby/buildkit
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.21
|
||||
script: |
|
||||
go build -mod=vendor -ldflags "$LDFLAGS" -o {{prefix}}/bin/buildctl ./cmd/buildctl
|
||||
|
||||
env:
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X github.com/moby/buildkit/version.Version={{version}}
|
||||
- -X github.com/moby/buildkit/version.Revision=$(git rev-parse HEAD)
|
||||
- -X github.com/moby/buildkit/version.Package=github.com/moby/buildkit
|
||||
linux:
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
|
||||
provides:
|
||||
- bin/buildctl
|
||||
|
||||
test:
|
||||
script:
|
||||
buildctl --version
|
Loading…
Reference in a new issue