Skip to content

Commit

Permalink
refactor: remove duplicated line
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcjr committed Oct 6, 2023
1 parent 416cbd0 commit f86bdb0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:

steps:
- name: Checkout repository
if: ${{ github.event_name != 'pull_request' && contains(github.event.head_commit, 'Dockerfile')}}
uses: actions/checkout@v3

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 #v3.1.1
with:
cosign-release: 'v2.1.1'
Expand Down Expand Up @@ -70,7 +70,6 @@ jobs:
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
if: ${{ github.event_name != 'pull_request' && contains(github.event.head_commit, 'Dockerfile')}}
id: build-and-push
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
Expand All @@ -87,7 +86,6 @@ jobs:
# 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' && contains(github.event.head_commit, 'Dockerfile')}}
env:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
TAGS: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit f86bdb0

Please sign in to comment.