Skip to content

Commit d0a276e

Browse files
authored
Merge pull request #1048 from onekey-sec/skip-docker-push-on-forks
ci: do not try to push docker image to registry for forks
2 parents ac2194f + 4ce604d commit d0a276e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-publish-image.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
platforms: ${{ matrix.platform }}
7070
labels: ${{ steps.meta.outputs.labels }}
7171
tags: ${{ steps.meta.output.tags }}
72-
outputs: type=image,name=${{ env.DOCKER_IMAGE }},push-by-digest=true,name-canonical=true,push=true
72+
outputs: type=image,name=${{ env.DOCKER_IMAGE }},push-by-digest=true,name-canonical=true,push=${{ github.repository_owner == 'ONEKEY' && 'true' || 'false' }}
7373

7474
- name: Docker container vulnerability scan
7575
id: scan

0 commit comments

Comments
 (0)