-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3976 from twz123/base64-decode-cosign-key
Base64-decode cosign key in release workflow
- Loading branch information
Showing
1 changed file
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,7 +89,8 @@ jobs: | |
run: | | ||
curl -sSLo cosign https://github.com/sigstore/cosign/releases/download/v2.2.0/cosign-linux-amd64 | ||
chmod +x ./cosign | ||
./cosign sign-blob --key env://COSIGN_KEY --tlog-upload=false k0s | tee k0s.sig | ||
COSIGN_KEY="$(printf %s "$COSIGN_KEY" | base64 -d)" ./cosign sign-blob --key env://COSIGN_KEY --tlog-upload=false --output-file=k0s.sig k0s | ||
cat k0s.sig | ||
- name: Upload Release Assets - Binary | ||
uses: shogo82148/[email protected] | ||
|
@@ -164,7 +165,8 @@ jobs: | |
run: | | ||
curl -sSLo cosign https://github.com/sigstore/cosign/releases/download/v2.2.0/cosign-linux-amd64 | ||
chmod +x ./cosign | ||
./cosign sign-blob --key env://COSIGN_KEY --tlog-upload=false k0s.exe | tee k0s.exe.sig | ||
COSIGN_KEY="$(printf %s "$COSIGN_KEY" | base64 -d)" ./cosign sign-blob --key env://COSIGN_KEY --tlog-upload=false --output-file=k0s.exe.sig k0s.exe | ||
cat k0s.exe.sig | ||
- name: Clean Docker | ||
run: | | ||
|
@@ -231,7 +233,8 @@ jobs: | |
run: | | ||
curl -sSLo cosign https://github.com/sigstore/cosign/releases/download/v2.2.0/cosign-linux-arm64 | ||
chmod +x ./cosign | ||
./cosign sign-blob --key env://COSIGN_KEY --tlog-upload=false k0s | tee k0s.sig | ||
COSIGN_KEY="$(printf %s "$COSIGN_KEY" | base64 -d)" ./cosign sign-blob --key env://COSIGN_KEY --tlog-upload=false --output-file=k0s.sig k0s | ||
cat k0s.sig | ||
- name: Set up Go for smoke tests | ||
uses: actions/setup-go@v3 | ||
|
@@ -331,7 +334,8 @@ jobs: | |
run: | | ||
curl -sSLo cosign https://github.com/sigstore/cosign/releases/download/v2.2.0/cosign-linux-arm | ||
chmod +x ./cosign | ||
./cosign sign-blob --key env://COSIGN_KEY --tlog-upload=false k0s | tee k0s.sig | ||
COSIGN_KEY="$(printf %s "$COSIGN_KEY" | base64 -d)" ./cosign sign-blob --key env://COSIGN_KEY --tlog-upload=false --output-file=k0s.sig k0s | ||
cat k0s.sig | ||
- name: Set up Go for smoke tests | ||
uses: actions/setup-go@v3 | ||
|