Skip to content

Commit 4619c7f

Browse files
authored
Update release signing configuration (#70)
1 parent f5db6d6 commit 4619c7f

File tree

2 files changed

+13
-21
lines changed

2 files changed

+13
-21
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,21 @@ jobs:
2525
- name: Set up Go
2626
uses: actions/setup-go@v2
2727
with:
28-
go-version: 1.16
28+
go-version: 1.17
2929
- name: Describe plugin
3030
id: plugin_describe
3131
run: echo "::set-output name=api_version::$(go run . describe | jq -r '.api_version')"
32-
- name: Import GPG key
33-
id: import_gpg
34-
uses: hashicorp/ghaction-import-gpg@v2.1.0
35-
env:
36-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
37-
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
32+
- name: Install signore
33+
uses: hashicorp/setup-signore-package@v1
34+
3835
- name: Run GoReleaser
3936
uses: goreleaser/goreleaser-action@v2
4037
with:
4138
version: latest
4239
args: release --rm-dist
4340
env:
44-
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
4541
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
API_VERSION: ${{ steps.plugin_describe.outputs.api_version }}
42+
API_VERSION: ${{ steps.plugin_describe.outputs.api_version }}
43+
SIGNORE_CLIENT_ID: ${{ secrets.SIGNORE_CLIENT_ID }}
44+
SIGNORE_CLIENT_SECRET: ${{ secrets.SIGNORE_CLIENT_SECRET }}
45+
SIGNORE_SIGNER: ${{ secrets.SIGNORE_SIGNER }}

.goreleaser.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This is an example goreleaser.yaml file with some sane defaults.
1+
# This is an example goreleaser.yaml file with some defaults.
22
# Make sure to check the documentation at http://goreleaser.com
33
env:
44
- CGO_ENABLED=0
@@ -57,17 +57,10 @@ checksum:
5757
name_template: '{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS'
5858
algorithm: sha256
5959
signs:
60-
- artifacts: checksum
61-
args:
62-
# if you are using this is in a GitHub action or some other automated pipeline, you
63-
# need to pass the batch flag to indicate its not interactive.
64-
- "--batch"
65-
- "--local-user"
66-
- "{{ .Env.GPG_FINGERPRINT }}"
67-
- "--output"
68-
- "${signature}"
69-
- "--detach-sign"
70-
- "${artifact}"
60+
- cmd: signore
61+
args: ["sign", "--dearmor", "--file", "${artifact}", "--out", "${signature}"]
62+
artifacts: checksum
63+
signature: ${artifact}.sig
7164
release:
7265
# If you want to manually examine the release before its live, uncomment this line:
7366
# draft: true

0 commit comments

Comments
 (0)