mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+github.com/passbolt/go-passbolt-cli
This commit is contained in:
parent
97009a2d8e
commit
01e38ed19b
1 changed files with 30 additions and 0 deletions
30
projects/github.com/passbolt/go-passbolt-cli/package.yml
Normal file
30
projects/github.com/passbolt/go-passbolt-cli/package.yml
Normal 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 }}
|
Loading…
Reference in a new issue