mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
31 lines
654 B
YAML
31 lines
654 B
YAML
|
distributable:
|
||
|
url: https://github.com/passbolt/go-passbolt-cli/archive/refs/tags/{{version.tag}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
display-name: go-passbolt-cli
|
||
|
|
||
|
versions:
|
||
|
github: passbolt/go-passbolt-cli
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
go.dev: ^1.20
|
||
|
env:
|
||
|
CGO_ENABLED: 0
|
||
|
LDFLAGS:
|
||
|
- -s
|
||
|
- -w
|
||
|
- -X main.version={{ version }}
|
||
|
- -X main.date=$( date -u +'%Y-%m-%dT%H:%M:%SZ' )
|
||
|
- -X main.commit=$( git rev-parse HEAD )
|
||
|
linux:
|
||
|
LDFLAGS:
|
||
|
- -buildmode=pie
|
||
|
script:
|
||
|
- go build -v -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/passbolt
|
||
|
|
||
|
provides:
|
||
|
- bin/passbolt
|
||
|
|
||
|
test: test "$(passbolt -v|cut -d' ' -f 3)" = {{ version }}
|