Skip to content

Commit

Permalink
Merge pull request #99 from hashicorp/release-archive-signing
Browse files Browse the repository at this point in the history
build: Sign archives checksum
  • Loading branch information
radeksimko authored May 14, 2020
2 parents 3b08916 + e0f01c8 commit 7339e27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ jobs:
id: codesign
env:
VERSION: v0
-
name: Import PGP key for archive signing
run: echo -e "${{ secrets.PGP_SIGNING_KEY }}" | gpg --import
-
name: Release
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --skip-sign
args: release
env:
PGP_USER_ID: ${{ secrets.PGP_USER_ID }}
CODESIGN_IMAGE: ${{ steps.codesign.outputs.image }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ARTIFACTORY_TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,10 @@ checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256

signs:
-
args: ["-u", "{{ .Env.PGP_USER_ID }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
artifacts: checksum

changelog:
skip: true

0 comments on commit 7339e27

Please sign in to comment.