-
Notifications
You must be signed in to change notification settings - Fork 372
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 #3970 from twz123/download-cosign
Use downloaded cosign binary in release workflow
- Loading branch information
Showing
1 changed file
with
12 additions
and
32 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 |
---|---|---|
|
@@ -87,14 +87,9 @@ jobs: | |
COSIGN_KEY: ${{ secrets.COSIGN_KEY }} | ||
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} | ||
run: | | ||
echo $COSIGN_KEY | base64 -d > cosign.key | ||
docker run --rm \ | ||
-v "$(CURDIR):/k0s" \ | ||
gcr.io/projectsigstore/cosign:v2.2.0 \ | ||
sign-blob \ | ||
--key /k0s/cosign.key \ | ||
--tlog-upload=false \ | ||
/k0s/k0s --output-file /k0s/k0s.sig | ||
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 | ||
- name: Upload Release Assets - Binary | ||
uses: shogo82148/[email protected] | ||
|
@@ -167,14 +162,9 @@ jobs: | |
COSIGN_KEY: ${{ secrets.COSIGN_KEY }} | ||
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} | ||
run: | | ||
echo $COSIGN_KEY | base64 -d > cosign.key | ||
docker run --rm \ | ||
-v "$(CURDIR):/k0s" \ | ||
gcr.io/projectsigstore/cosign:v2.2.0 \ | ||
sign-blob \ | ||
--key /k0s/cosign.key \ | ||
--tlog-upload=false \ | ||
/k0s/k0s.exe --output-file /k0s/k0s.exe.sig | ||
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 | ||
- name: Clean Docker | ||
run: | | ||
|
@@ -239,14 +229,9 @@ jobs: | |
COSIGN_KEY: ${{ secrets.COSIGN_KEY }} | ||
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} | ||
run: | | ||
echo $COSIGN_KEY | base64 -d > cosign.key | ||
docker run --rm \ | ||
-v "$(CURDIR):/k0s" \ | ||
gcr.io/projectsigstore/cosign:v2.2.0 \ | ||
sign-blob \ | ||
--key /k0s/cosign.key \ | ||
--tlog-upload=false \ | ||
/k0s/k0s --output-file /k0s/k0s.sig | ||
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 | ||
- name: Set up Go for smoke tests | ||
uses: actions/setup-go@v3 | ||
|
@@ -344,14 +329,9 @@ jobs: | |
COSIGN_KEY: ${{ secrets.COSIGN_KEY }} | ||
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} | ||
run: | | ||
echo $COSIGN_KEY | base64 -d > cosign.key | ||
docker run --rm \ | ||
-v "$(CURDIR):/k0s" \ | ||
gcr.io/projectsigstore/cosign:v2.2.0 \ | ||
sign-blob \ | ||
--key /k0s/cosign.key \ | ||
--tlog-upload=false \ | ||
/k0s/k0s --output-file /k0s/k0s.sig | ||
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 | ||
- name: Set up Go for smoke tests | ||
uses: actions/setup-go@v3 | ||
|