Skip to content

Commit

Permalink
fix(goreleaser): Publish public key for verification (#1914)
Browse files Browse the repository at this point in the history
Reviewed-by: Alexander Jung <[email protected]>
Approved-by: Alexander Jung <[email protected]>
  • Loading branch information
nderjung authored Jan 21, 2025
2 parents 712aa82 + 67e5e30 commit 8845c81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,21 @@ jobs:
apt-get update
apt-get install -y --no-install-recommends \
fury-cli
curl -O -L "https://github.com/sigstore/cosign/releases/latest/download/cosign-linux-amd64"
mv cosign-linux-amd64 /usr/local/bin/cosign
chmod +x /usr/local/bin/cosign
- name: Generate GoReleaser configuration
run: |
ytt -f .goreleaser-stable.yaml > goreleaser-stable.yaml
- name: Write cosign key to file
- name: Write cosign key and pubkey to file
run: |
echo "$COSIGN_KEY" > cosign.key
chmod 600 cosign.key
echo "$COSIGN_PASSWORD" | cosign public-key --key cosign.key > public.key
env:
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
COSIGN_KEY: ${{ secrets.COSIGN_KEY }}

- name: Run GoReleaser
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ release:
This is a stable release of kraftkit.
name_template: 'v{{ .Version }}'
extra_files:
- public.key

signs:
- id: cosign
Expand Down

0 comments on commit 8845c81

Please sign in to comment.