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