Skip to content

Commit

Permalink
Merge pull request #786 from orvice/fix/action-docker-building
Browse files Browse the repository at this point in the history
fix ci
  • Loading branch information
orvice authored Nov 11, 2022
2 parents 421c858 + d4550a4 commit e33533b
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ jobs:
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@7e0881f8fe90b25e305bbf0309761e9314607e25
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v1.9.0'
cosign-release: 'v1.13.1'

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -83,17 +83,4 @@ jobs:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
# repository is public to avoid leaking data. If you would like to publish
# transparency data even for private images, pass --force to cosign below.
# https://github.com/sigstore/cosign
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
COSIGN_EXPERIMENTAL: "true"
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit e33533b

Please sign in to comment.