mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
new file: projects/docker.com/buildx/package.yml
This commit is contained in:
parent
67cdc74edf
commit
08320d6ae9
1 changed files with 32 additions and 0 deletions
32
projects/docker.com/buildx/package.yml
Normal file
32
projects/docker.com/buildx/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
distributable:
|
||||||
|
url: git+https://github.com/docker/buildx.git
|
||||||
|
ref: ${{version.tag}}
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: docker/buildx
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.21
|
||||||
|
script:
|
||||||
|
go build $ARGS -ldflags="$LDFLAGS" ./cmd/buildx
|
||||||
|
env:
|
||||||
|
REV: $(git rev-parse --short HEAD)
|
||||||
|
ARGS:
|
||||||
|
- -trimpath
|
||||||
|
- -o={{prefix}}/bin/buildx
|
||||||
|
LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
- -X github.com/docker/buildx/version.Version=v{{version}}
|
||||||
|
- -X github.com/docker/buildx/version.Revision=${REV}
|
||||||
|
linux:
|
||||||
|
LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/buildx
|
||||||
|
|
||||||
|
test:
|
||||||
|
- buildx version | grep {{version}}
|
||||||
|
- buildx help | grep 'Extended build capabilities with BuildKit'
|
Loading…
Reference in a new issue