Skip to content

Commit 53868af

Browse files
authored
Merge pull request #1049 from onekey-sec/skip-docker-push-on-forks
ci: do not try to push docker image to registry for forks (again)
2 parents 5a263ec + 524c8e7 commit 53868af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
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=${{ github.repository_owner == 'ONEKEY' && 'true' || 'false' }}
72+
outputs: type=image,name=${{ env.DOCKER_IMAGE }},push-by-digest=true,name-canonical=true,push=${{ github.repository_owner == 'onekey-sec' && 'true' || 'false' }}
7373

7474
- name: Docker container vulnerability scan
7575
id: scan
@@ -109,6 +109,7 @@ jobs:
109109
retention-days: 1
110110

111111
merge-and-push-image:
112+
if: github.repository_owner == 'onekey-sec'
112113
runs-on: ubuntu-latest
113114
needs:
114115
- build-image

0 commit comments

Comments
 (0)