Skip to content

Commit

Permalink
gaelg/add-cosign-signature
Browse files Browse the repository at this point in the history
Signed-off-by: Gaël Goinvic <gaelg@element.io>
  • Loading branch information
gaelgatelement committed Jan 3, 2024
1 parent eabedd9 commit c7da520
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/docker.yml
Expand Up @@ -29,6 +29,9 @@ jobs:
- name: Inspect builder
run: docker buildx inspect

- name: Install Cosign
uses: sigstore/cosign-installer@v3.3.0

- name: Checkout repository
uses: actions/checkout@v4

Expand Down Expand Up @@ -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}

0 comments on commit c7da520

Please sign in to comment.