-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gaël Goinvic <[email protected]>
- Loading branch information
1 parent
eabedd9
commit c7da520
Showing
1 changed file
with
14 additions
and
0 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 |
---|---|---|
|
@@ -29,6 +29,9 @@ jobs: | |
- name: Inspect builder | ||
run: docker buildx inspect | ||
|
||
- name: Install Cosign | ||
uses: sigstore/[email protected] | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
|
@@ -82,3 +85,14 @@ jobs: | |
# https://github.com/rust-lang/cargo/issues/10583 | ||
build-args: | | ||
CARGO_NET_GIT_FETCH_WITH_CLI=true | ||
- name: Sign the images with GitHub OIDC Token | ||
env: | ||
DIGEST: ${{ steps.build-and-push.outputs.digest }} | ||
TAGS: ${{ steps.set-tag.outputs.tags }} | ||
run: | | ||
images="" | ||
for tag in ${TAGS}; do | ||
images+="${tag}@${DIGEST} " | ||
done | ||
cosign sign --yes ${images} |