mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25: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:
|
versions:
|
||||||
github: jfrog/jfrog-cli
|
github: jfrog/jfrog-cli
|
||||||
|
|
||||||
platforms:
|
|
||||||
- darwin
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
go.dev: '*'
|
go.dev: ^1.20
|
||||||
script:
|
script:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
- go build $ARGS
|
- go build -ldflags="$GO_LDFLAGS" $ARGS
|
||||||
- run: ln -s jf jfrog
|
- run: ln -s jf jfrog
|
||||||
working-directory: '{{prefix}}/bin'
|
working-directory: '{{prefix}}/bin'
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- -trimpath
|
- -trimpath
|
||||||
- -o {{prefix}}/bin/jf
|
- -o {{prefix}}/bin/jf
|
||||||
|
GO_LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
linux:
|
||||||
|
GO_LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/jf
|
- bin/jf
|
||||||
|
|
Loading…
Reference in a new issue