2023-06-16 19:23:18 +03:00
|
|
|
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:
|
2024-04-10 23:25:39 +03:00
|
|
|
go.dev: ^1.20
|
2024-02-21 21:58:49 +03:00
|
|
|
script:
|
|
|
|
- go mod tidy
|
2024-04-10 23:25:39 +03:00
|
|
|
- go build -ldflags="$GO_LDFLAGS" $ARGS
|
2024-02-21 21:58:49 +03:00
|
|
|
- run: ln -s jf jfrog
|
|
|
|
working-directory: '{{prefix}}/bin'
|
2023-06-16 19:23:18 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- -trimpath
|
2024-02-21 22:13:54 +03:00
|
|
|
- -o {{prefix}}/bin/jf
|
2024-04-10 23:25:39 +03:00
|
|
|
GO_LDFLAGS:
|
|
|
|
- -s
|
|
|
|
- -w
|
|
|
|
linux:
|
|
|
|
GO_LDFLAGS:
|
|
|
|
- -buildmode=pie
|
2023-06-16 19:23:18 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/jf
|
|
|
|
- bin/jfrog
|
|
|
|
|
2024-02-21 21:58:49 +03:00
|
|
|
test:
|
|
|
|
- jf -v | grep {{version}}
|
|
|
|
- jfrog -v | grep {{version}}
|