mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
f63bb9e5e0
commit
d178289238
1 changed files with 9 additions and 10 deletions
|
@ -11,21 +11,20 @@ platforms:
|
|||
build:
|
||||
dependencies:
|
||||
go.dev: '*'
|
||||
script: |
|
||||
go build $ARGS
|
||||
mkdir -p {{prefix}}/bin
|
||||
mv ./bin/jf {{prefix}}/bin
|
||||
ln -sf jf {{prefix}}/bin/jfrog
|
||||
|
||||
script:
|
||||
- go mod tidy
|
||||
- go build $ARGS
|
||||
- run: ln -s jf jfrog
|
||||
working-directory: '{{prefix}}/bin'
|
||||
env:
|
||||
ARGS:
|
||||
- -trimpath
|
||||
- -o=bin/jf
|
||||
- -o='{{prefix}}/bin/jf'
|
||||
|
||||
provides:
|
||||
- bin/jf
|
||||
- bin/jfrog
|
||||
|
||||
test: |
|
||||
jf -v | grep {{version}}
|
||||
jfrog -v | grep {{version}}
|
||||
test:
|
||||
- jf -v | grep {{version}}
|
||||
- jfrog -v | grep {{version}}
|
||||
|
|
Loading…
Reference in a new issue