+github.com/passbolt/go-passbolt-cli

This commit is contained in:
tannevaled 2024-05-31 14:49:23 +02:00 committed by Jacob Heider
parent 97009a2d8e
commit 01e38ed19b

View file

@ -0,0 +1,30 @@
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 }}