Skip to content

Commit 0141211

Browse files
Fix CI for external PRs (#8766)
### Steps to test: - CI should pass and Docker push steps should exist (in this PR) ### Issues: - fixes broken CI for #8680
1 parent 80e2ed2 commit 0141211

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/build_test_deploy.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,44 +263,58 @@ jobs:
263263
run: docker compose --file .github/docker-compose.yml down --volumes --remove-orphans
264264

265265
- uses: docker/login-action@v3
266+
if: ${{ github.actor != 'dependabot[bot]' &&
267+
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
266268
with:
267269
username: ${{ secrets.DOCKER_USER }}
268270
password: ${{ secrets.DOCKER_PASS }}
269271

270272
- name: Push webknossos image
271-
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
273+
if: ${{ ! startsWith(github.ref, 'refs/tags/') &&
274+
github.actor != 'dependabot[bot]' &&
275+
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
272276
uses: ./.github/actions/retry
273277
with:
274278
run: docker push "scalableminds/webknossos:${{ env.DOCKER_TAG }}"
275279
retries: 5
276280
retry_delay_seconds: 10
277281
- name: Push normalized webknossos image
282+
if: ${{ github.actor != 'dependabot[bot]' &&
283+
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
278284
uses: ./.github/actions/retry
279285
with:
280286
run: docker push "scalableminds/webknossos:${{ env.NORMALIZED_BRANCH }}"
281287
retries: 5
282288
retry_delay_seconds: 10
283289
- name: Push webknossos-datastore image
284-
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
290+
if: ${{ ! startsWith(github.ref, 'refs/tags/') &&
291+
github.actor != 'dependabot[bot]' &&
292+
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
285293
uses: ./.github/actions/retry
286294
with:
287295
run: docker push "scalableminds/webknossos-datastore:${{ env.DOCKER_TAG }}"
288296
retries: 5
289297
retry_delay_seconds: 10
290298
- name: Push normalized webknossos-datastore image
299+
if: ${{ github.actor != 'dependabot[bot]' &&
300+
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
291301
uses: ./.github/actions/retry
292302
with:
293303
run: docker push "scalableminds/webknossos-datastore:${{ env.NORMALIZED_BRANCH }}"
294304
retries: 5
295305
retry_delay_seconds: 10
296306
- name: Push webknossos-tracingstore image
297-
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
307+
if: ${{ ! startsWith(github.ref, 'refs/tags/') &&
308+
github.actor != 'dependabot[bot]' &&
309+
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
298310
uses: ./.github/actions/retry
299311
with:
300312
run: docker push "scalableminds/webknossos-tracingstore:${{ env.DOCKER_TAG }}"
301313
retries: 5
302314
retry_delay_seconds: 10
303315
- name: Push normalized webknossos-tracingstore image
316+
if: ${{ github.actor != 'dependabot[bot]' &&
317+
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
304318
uses: ./.github/actions/retry
305319
with:
306320
run: docker push "scalableminds/webknossos-tracingstore:${{ env.NORMALIZED_BRANCH }}"

0 commit comments

Comments
 (0)