Skip to content

Commit 09ce47d

Browse files
authored
Sign the Release SHA files (#57)
1 parent 83bd5fb commit 09ce47d

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/gorelease.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ jobs:
2020
with:
2121
fetch-depth: 0
2222

23+
- name: Import GPG key
24+
id: import_gpg
25+
uses: crazy-max/ghaction-import-gpg@v2
26+
env:
27+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
28+
PASSPHRASE: ${{ secrets.PASSPHRASE }}
29+
2330
- name: test provider
2431
run: |
2532
make generate
@@ -31,3 +38,4 @@ jobs:
3138
args: release --rm-dist
3239
env:
3340
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

.goreleaser.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ builds:
2525
- goos: darwin
2626
goarch: '386'
2727
binary: '{{ .ProjectName }}_v{{ .Version }}'
28+
signs:
29+
- artifacts: checksum
30+
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
2831
archives:
2932
- format: zip
3033
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'

tools/magefile.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ func terraformCustomDataDir() string {
225225
check(err)
226226
return filepath.Join(home, ".local/share/terraform/plugins")
227227
}
228-
229228
func (Build) TerraformInstallProvider() {
230229

231230
distPath := "../dist/terraform-provider-harbor_linux_amd64"

0 commit comments

Comments
 (0)