mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
871710ccc1
* Build jfrog-cli for linux * -buildmode=pie --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
33 lines
596 B
YAML
33 lines
596 B
YAML
distributable:
|
|
url: https://github.com/jfrog/jfrog-cli/archive/refs/tags/v{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: jfrog/jfrog-cli
|
|
|
|
build:
|
|
dependencies:
|
|
go.dev: ^1.20
|
|
script:
|
|
- go mod tidy
|
|
- go build -ldflags="$GO_LDFLAGS" $ARGS
|
|
- run: ln -s jf jfrog
|
|
working-directory: '{{prefix}}/bin'
|
|
env:
|
|
ARGS:
|
|
- -trimpath
|
|
- -o {{prefix}}/bin/jf
|
|
GO_LDFLAGS:
|
|
- -s
|
|
- -w
|
|
linux:
|
|
GO_LDFLAGS:
|
|
- -buildmode=pie
|
|
|
|
provides:
|
|
- bin/jf
|
|
- bin/jfrog
|
|
|
|
test:
|
|
- jf -v | grep {{version}}
|
|
- jfrog -v | grep {{version}}
|