From f2dd95a23dfc2f0ec45bb40db681769f86945dc8 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Fri, 19 Jan 2024 17:11:16 +0200 Subject: [PATCH] +getsops.io (#4905) * + * gnupg? --- projects/getsops.io/package.yml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 projects/getsops.io/package.yml diff --git a/projects/getsops.io/package.yml b/projects/getsops.io/package.yml new file mode 100644 index 00000000..ee62ffbd --- /dev/null +++ b/projects/getsops.io/package.yml @@ -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" \ No newline at end of file