diff --git a/projects/github.com/passbolt/go-passbolt-cli/package.yml b/projects/github.com/passbolt/go-passbolt-cli/package.yml new file mode 100644 index 00000000..03ecdc33 --- /dev/null +++ b/projects/github.com/passbolt/go-passbolt-cli/package.yml @@ -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 }}