mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
Build jfrog-cli for linux (#5857)
* Build jfrog-cli for linux * -buildmode=pie --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
609f367721
commit
871710ccc1
1 changed files with 8 additions and 5 deletions
|
@ -5,21 +5,24 @@ distributable:
|
|||
versions:
|
||||
github: jfrog/jfrog-cli
|
||||
|
||||
platforms:
|
||||
- darwin
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: '*'
|
||||
go.dev: ^1.20
|
||||
script:
|
||||
- go mod tidy
|
||||
- go build $ARGS
|
||||
- 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
|
||||
|
|
Loading…
Reference in a new issue