Skip to content

Commit b0fec89

Browse files
committed
ci: only attempt to push sidecar image from canonical repository
Signed-off-by: Jacob Howard <[email protected]>
1 parent 15e9d73 commit b0fec89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
- uses: docker/setup-qemu-action@v3
132132
- uses: docker/setup-buildx-action@v3
133133
- uses: docker/login-action@v3
134-
if: github.ref_type == 'tag'
134+
if: github.ref_type == 'tag' && github.action_repository == 'mutagen-io/mutagen'
135135
with:
136136
username: ${{ secrets.SIDECAR_DEPLOYMENT_USER }}
137137
password: ${{ secrets.SIDECAR_DEPLOYMENT_TOKEN }}
@@ -143,7 +143,7 @@ jobs:
143143
file: images/sidecar/linux/Dockerfile
144144
target: mit
145145
tags: ${{ steps.tag.outputs.tag }}
146-
push: ${{ github.ref_type == 'tag' }}
146+
push: ${{ github.ref_type == 'tag' && github.action_repository == 'mutagen-io/mutagen' }}
147147
platforms: |
148148
linux/386
149149
linux/amd64
@@ -156,7 +156,7 @@ jobs:
156156
file: images/sidecar/linux/Dockerfile
157157
target: sspl
158158
tags: ${{ steps.tag.outputs.tag }}-sspl
159-
push: ${{ github.ref_type == 'tag' }}
159+
push: ${{ github.ref_type == 'tag' && github.action_repository == 'mutagen-io/mutagen' }}
160160
platforms: |
161161
linux/386
162162
linux/amd64

0 commit comments

Comments
 (0)