Skip to content

Commit c7d88b5

Browse files
committed
Update docker-build-push.yml
1 parent 9a2b159 commit c7d88b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ jobs:
5252
tags: ${{ steps.meta.outputs.tags }}
5353
labels: ${{ steps.meta.outputs.labels }}
5454
- name: Install cosign
55+
if: github.ref == 'refs/heads/main'
5556
uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.8.1
5657
- name: Sign the Docker image
58+
if: github.ref == 'refs/heads/main'
5759
working-directory: ${{ env.IMAGE }}
5860
env:
5961
DIGEST: ${{ steps.build.outputs.digest }}

0 commit comments

Comments
 (0)