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_rust_compiler
- install_release_tools - install_release_tools
- run: make protoc # installs protoc - run: make protoc # installs protoc
- run:
name: import GPG key
command: |
echo -e "$GPG_PRIVATE_KEY" > private.key
gpg --batch --import private.key
- run: - run:
name: "Build release" name: "Build release"
command: make release command: make release

View File

@ -124,6 +124,13 @@ dockers:
extra_files: extra_files:
- docker/influxd/entrypoint.sh - 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 # Do not make github release
release: release:
name_template: "v{{.Version}}" name_template: "v{{.Version}}"