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:
Felipe Santos 2024-04-10 17:25:39 -03:00 committed by GitHub
parent 609f367721
commit 871710ccc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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