Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(goreleaser): Publish public key for verification #1914

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading