|
68 | 68 | with: |
69 | 69 | context: ./processing/segmenter |
70 | 70 | pull: true |
71 | | - push: ${{ github.event_name == 'pull_request' || github.event_name == 'push' || github.event_name == 'push tag' }} |
| 71 | + push: ${{ (github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork) || github.event_name == 'push' || github.event_name == 'push tag' }} |
72 | 72 | platforms: ${{ matrix.platform }} |
73 | 73 | tags: ${{ env.REGISTRY_IMAGE }} |
74 | 74 | labels: ${{ steps.meta.outputs.labels }} |
@@ -121,20 +121,20 @@ jobs: |
121 | 121 |
|
122 | 122 | - name: Log in to GitHub Container Registry |
123 | 123 | uses: docker/login-action@v3 |
124 | | - if: github.event_name == 'pull_request' || github.event_name == 'push' || github.event_name == 'push tag' |
| 124 | + if: ${{ (github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork) || github.event_name == 'push' || github.event_name == 'push tag' }} |
125 | 125 | with: |
126 | 126 | registry: ghcr.io |
127 | 127 | username: ${{ github.repository_owner }} |
128 | 128 | password: ${{ secrets.GITHUB_TOKEN }} |
129 | 129 |
|
130 | 130 | - name: Create manifest list and push |
131 | 131 | working-directory: /tmp/digests |
132 | | - if: github.event_name == 'pull_request' || github.event_name == 'push' || github.event_name == 'push tag' |
| 132 | + if: ${{ (github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork) || github.event_name == 'push' || github.event_name == 'push tag' }} |
133 | 133 | run: | |
134 | 134 | docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ |
135 | 135 | $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *) |
136 | 136 |
|
137 | 137 | - name: Inspect image |
138 | | - if: github.event_name == 'pull_request' || github.event_name == 'push' || github.event_name == 'push tag' |
| 138 | + if: ${{ (github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork) || github.event_name == 'push' || github.event_name == 'push tag' }} |
139 | 139 | run: | |
140 | 140 | docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }} |
0 commit comments