chore: added sign section to goreleaser (#19739)

* chore: added sign section to goreleaser

* chore: update config.yml to be able to import GPG keys
pull/19747/head
Gershon Shif 2020-10-14 09:06:37 -07:00 committed by GitHub
parent 8a0068546f
commit 9bb9b7f8dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -472,6 +472,11 @@ jobs:
- install_rust_compiler
- install_release_tools
- run: make protoc # installs protoc
- run:
name: import GPG key
command: |
echo -e "$GPG_PRIVATE_KEY" > private.key
gpg --batch --import private.key
- run:
name: "Build release"
command: make release

View File

@ -124,6 +124,13 @@ dockers:
extra_files:
- docker/influxd/entrypoint.sh
signs:
-
signature: "${artifact}.asc"
cmd: gpg
args: [ "--passphrase", "{{.Env.PASSPHRASE}}", "--pinentry-mode=loopback", "--batch", "--armor", "--detach-sign", "${artifact}"]
artifacts: all
# Do not make github release
release:
name_template: "v{{.Version}}"