Skip to content

Commit

Permalink
Install cosign in right step
Browse files Browse the repository at this point in the history
  • Loading branch information
cromefire committed Oct 22, 2023
1 parent 93af436 commit 7ce9ba3
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ jobs:
with:
platforms: ${{ matrix.platform.qemu }}

# 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.2.0'

# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
# https://github.com/docker/setup-buildx-action
Expand Down Expand Up @@ -120,7 +112,7 @@ jobs:
- name: Build and push Docker image
id: build-and-push
uses: docker/[email protected]
if: github.event_name != 'pull_request'
if: github.event_name == 'pull_request'
with:
context: .
file: ${{ matrix.platform.dockerfile && matrix.platform.dockerfile || 'Dockerfile' }}
Expand Down Expand Up @@ -184,6 +176,13 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
uses: sigstore/[email protected]
with:
cosign-release: 'v2.2.0'


# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
Expand Down

0 comments on commit 7ce9ba3

Please sign in to comment.