Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
norbertgruszka authored Nov 30, 2023
1 parent f8bac30 commit a8380ce
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/[email protected]
with:
cosign-release: 'v2.1.1' # optional
# - name: Install cosign
# if: github.event_name != 'pull_request'
# uses: sigstore/[email protected]
# with:
# cosign-release: 'v2.1.1' # optional


# Workaround: https://github.com/docker/build-push-action/issues/461
Expand Down Expand Up @@ -77,9 +77,9 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Sign the images with GitHub OIDC Token
if: ${{ github.event_name != 'pull_request' }}
env:
DIGEST: ${{ steps.build-and-push.outputs.digest }}
TAGS: ${{ steps.docker_meta.outputs.tags }}
run: cosign sign --yes "${TAGS}@${DIGEST}"
# - name: Sign the images with GitHub OIDC Token
# if: ${{ github.event_name != 'pull_request' }}
# env:
# DIGEST: ${{ steps.build-and-push.outputs.digest }}
# TAGS: ${{ steps.docker_meta.outputs.tags }}
# run: cosign sign --yes "${TAGS}@${DIGEST}"

0 comments on commit a8380ce

Please sign in to comment.