+getsops.io (#4905)

* +

* gnupg?
This commit is contained in:
Andrew 2024-01-19 17:11:16 +02:00 committed by GitHub
parent da988fd829
commit f2dd95a23d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,38 @@
distributable:
url: git+https://github.com/getsops/sops.git
ref: ${{version.tag}}
versions:
github: getsops/sops
build:
dependencies:
go.dev: ^1.19
script:
- go build $GO_ARGS -ldflags="$LDFLAGS" ./cmd/sops
env:
GO_ARGS:
- -trimpath
- -o="{{prefix}}/bin/sops"
LDFLAGS:
- -s
- -w
- -X github.com/getsops/sops/v3/version.Version={{version}}
linux:
LDFLAGS:
- -buildmode=pie
provides:
- bin/sops
test:
dependencies:
gnupg.org: '*'
script:
- sops --version | grep {{version}}
- git clone https://github.com/getsops/sops.git
- gpg --import sops/pgp/sops_functional_tests_key.asc
- sops --decrypt sops/example.json > example.dec.json
- cat example.dec.json | grep 'New York'
env:
GPG_HOME: "$(dirname $(which gpg))/../etc/gnupg"