Skip to content

Commit 4b47485

Browse files
committed
Add conditions back into the setup
1 parent e0e4543 commit 4b47485

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/_containerTemplate.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: Install cosign
5757
uses: sigstore/cosign-installer@v3.1.2
5858
id: install_cosign
59-
# if: github.event_name != 'pull_request'
59+
if: github.event_name != 'pull_request'
6060
with:
6161
cosign-release: 'v2.2.0'
6262

@@ -74,7 +74,7 @@ jobs:
7474
- name: Login Container Registry
7575
uses: docker/login-action@v3.0.0
7676
id: registry_login
77-
# if: github.event_name != 'pull_request'
77+
if: github.event_name != 'pull_request'
7878
with:
7979
registry: ${{ inputs.registry_uri }}
8080
username: ${{ secrets.USER_NAME }}
@@ -101,7 +101,7 @@ jobs:
101101
with:
102102
context: ${{ inputs.working_directory }}
103103
file: ${{ inputs.working_directory }}/Dockerfile
104-
push: true # ${{ github.event_name != 'pull_request' }}
104+
push: ${{ github.event_name != 'pull_request' }}
105105
tags: ${{ steps.metadata.outputs.tags }}
106106
labels: ${{ steps.metadata.outputs.labels }}
107107
cache-from: type=gha
@@ -111,7 +111,7 @@ jobs:
111111
# This step uses the identity token to provision an ephemeral certificate against the sigstore community Fulcio instance.
112112
- name: Sign container image
113113
id: sign
114-
# if: ${{ github.event_name != 'pull_request' }}
114+
if: ${{ github.event_name != 'pull_request' }}
115115
run: |
116116
cosign sign --yes "${TAGS}@${DIGEST}"
117117
env:

0 commit comments

Comments
 (0)