Skip to content

Commit e79fe99

Browse files
authored
Do not try to download pytorch-notebook-aarch64-cuda11 (#2378)
1 parent 9fd355b commit e79fe99

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.github/workflows/docker-build-test-upload.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
5252
- name: Free disk space 🧹
5353
uses: ./.github/actions/free-disk-space
54+
if: contains(inputs.variant, 'cuda') || inputs.image == 'datascience-notebook' || inputs.image == 'all-spark-notebook'
5455
- name: Create dev environment 📦
5556
uses: ./.github/actions/create-dev-env
5657

.github/workflows/docker-tag-push.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,15 @@ jobs:
4040
steps:
4141
- name: Checkout Repo ⚡️
4242
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
43+
- name: Free disk space 🧹
44+
uses: ./.github/actions/free-disk-space
45+
if: contains(inputs.variant, 'cuda') || inputs.image == 'datascience-notebook' || inputs.image == 'all-spark-notebook'
4346
- name: Create dev environment 📦
4447
uses: ./.github/actions/create-dev-env
4548

4649
- name: Download image tar and apply tags 🏷
4750
uses: ./.github/actions/apply-single-tags
51+
if: ${{ !(contains(inputs.variant, 'cuda11') && matrix.platform == 'aarch64') }}
4852
with:
4953
image: ${{ inputs.image }}
5054
variant: ${{ inputs.variant }}
@@ -63,7 +67,7 @@ jobs:
6367
id: login
6468

6569
- name: Push single platform images to Registry 📤
66-
if: env.PUSH_TO_REGISTRY == 'true'
70+
if: env.PUSH_TO_REGISTRY == 'true' && !(contains(inputs.variant, 'cuda11') && matrix.platform == 'aarch64')
6771
run: |
6872
docker push --all-tags ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ inputs.image }} || \
6973
docker push --all-tags ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ inputs.image }}

.github/workflows/docker.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ on:
1515
# We use local reusable workflows to make architecture clean and simple
1616
# https://docs.github.com/en/actions/sharing-automations/reusing-workflows
1717
- ".github/workflows/docker-build-test-upload.yml"
18+
- ".github/workflows/docker-tag-merge.yml"
1819
- ".github/workflows/docker-tag-push-merge.yml"
20+
- ".github/workflows/docker-tag-push.yml"
1921
- ".github/workflows/docker-wiki-update.yml"
2022

2123
# We use local composite actions to combine multiple workflow steps within one action
@@ -39,7 +41,9 @@ on:
3941
paths:
4042
- ".github/workflows/docker.yml"
4143
- ".github/workflows/docker-build-test-upload.yml"
44+
- ".github/workflows/docker-tag-merge.yml"
4245
- ".github/workflows/docker-tag-push-merge.yml"
46+
- ".github/workflows/docker-tag-push.yml"
4347
- ".github/workflows/docker-wiki-update.yml"
4448

4549
- ".github/actions/apply-single-tags/action.yml"
@@ -375,7 +379,7 @@ jobs:
375379
# contributed-recipes will give an error if the image is not yet built and uploaded
376380
needs: [aarch64-base, x86_64-base, aarch64-minimal, x86_64-minimal]
377381

378-
tag-push:
382+
tag-push-merge:
379383
uses: ./.github/workflows/docker-tag-push-merge.yml
380384
with:
381385
image: ${{ matrix.image }}
@@ -442,7 +446,7 @@ jobs:
442446
]
443447
if: ${{ !contains(github.event.pull_request.title, '[FAST_BUILD]') }}
444448

445-
tag-push-fast:
449+
tag-push-merge-fast:
446450
uses: ./.github/workflows/docker-tag-push-merge.yml
447451
with:
448452
image: ${{ matrix.image }}
@@ -459,14 +463,14 @@ jobs:
459463

460464
wiki-update:
461465
uses: ./.github/workflows/docker-wiki-update.yml
462-
needs: tag-push
466+
needs: tag-push-merge
463467
if: ${{ !contains(github.event.pull_request.title, '[FAST_BUILD]') }}
464468
permissions:
465469
contents: write
466470

467471
wiki-update-fast:
468472
uses: ./.github/workflows/docker-wiki-update.yml
469-
needs: tag-push-fast
473+
needs: tag-push-merge-fast
470474
if: contains(github.event.pull_request.title, '[FAST_BUILD]')
471475
permissions:
472476
contents: write

0 commit comments

Comments
 (0)