Repository navigation
Commit 79f3031
authored
fix(release): sign checksums with explicit GPG key in isolated keyring (#958)
* fix(release): sign checksums with explicit GPG key in isolated keyring
The self-hosted release runner is persistent (not ephemeral), so the
shared ~/.gnupg default keyring can end up in a state where gpg can't
resolve an unambiguous default signing key, failing with
"no default secret key: No public key". Import the key into a
job-scoped GNUPGHOME and have goreleaser sign with the imported key's
fingerprint explicitly instead of relying on gpg's default-key guess.
* fix(ci): write proper KEY=VALUE to GITHUB_ENV for GNUPGHOME
echo "$GNUPGHOME" >> "$GITHUB_ENV" wrote just the value with no key,
which GitHub's env-file parser rejects ("Invalid format"). Test run
against v0.1.30 caught this before it could hit a real release.
* ci(release): disable actions/setup-go cache on the self-hosted runner
GOCACHE/GOMODCACHE already persist on this runner's disk between
runs since it's a long-lived machine, not ephemeral. Uploading/
downloading GitHub's remote Actions cache on top of that just adds
several minutes of upload time for a multi-GB cache with no benefit.1 parent 29fcb60 commit 79f3031
3 files changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
6 | 14 | | |
7 | 15 | | |
8 | 16 | | |
| |||
0 commit comments