Skip to content

Commit 2c62e57

Browse files
committed
push docker
1 parent e40224f commit 2c62e57

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/docker-build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ concurrency:
2828
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2929

3030
env:
31-
PUSH_NIGHTLY: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
31+
PUSH_NIGHTLY: true # fixme: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
3232
PUSH_RELEASE: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'release' }}
3333

3434
jobs:
@@ -43,11 +43,11 @@ jobs:
4343
include:
4444
# We only release one docker image per PyTorch version.
4545
# Make sure the matrix here matches the one below.
46-
- { python_version: "3.10", pytorch_version: "2.1", cuda_version: "12.1.0" }
47-
- { python_version: "3.11", pytorch_version: "2.2", cuda_version: "12.1.0" }
48-
- { python_version: "3.11", pytorch_version: "2.3", cuda_version: "12.1.0" }
49-
- { python_version: "3.11", pytorch_version: "2.4", cuda_version: "12.1.0" }
50-
- { python_version: "3.12", pytorch_version: "2.5", cuda_version: "12.1.0" }
46+
- { python_version: "3.10", pytorch_version: "2.1.0", cuda_version: "12.1.0" }
47+
- { python_version: "3.11", pytorch_version: "2.2.2", cuda_version: "12.1.0" }
48+
- { python_version: "3.11", pytorch_version: "2.3.1", cuda_version: "12.1.0" }
49+
- { python_version: "3.11", pytorch_version: "2.4.1", cuda_version: "12.1.0" }
50+
- { python_version: "3.12", pytorch_version: "2.5.0", cuda_version: "12.1.0" }
5151
steps:
5252
- uses: actions/checkout@v4
5353
with:
@@ -104,11 +104,11 @@ jobs:
104104
include:
105105
# These are the base images for PL release docker images.
106106
# Make sure the matrix here matches the one above.
107-
- { python_version: "3.10", pytorch_version: "2.1", cuda_version: "12.1.0" }
108-
- { python_version: "3.11", pytorch_version: "2.2", cuda_version: "12.1.0" }
109-
- { python_version: "3.11", pytorch_version: "2.3", cuda_version: "12.1.0" }
110-
- { python_version: "3.11", pytorch_version: "2.4", cuda_version: "12.1.0" }
111-
- { python_version: "3.12", pytorch_version: "2.5", cuda_version: "12.1.0" }
107+
- { python_version: "3.10", pytorch_version: "2.1.0", cuda_version: "12.1.0" }
108+
- { python_version: "3.11", pytorch_version: "2.2.2", cuda_version: "12.1.0" }
109+
- { python_version: "3.11", pytorch_version: "2.3.1", cuda_version: "12.1.0" }
110+
- { python_version: "3.11", pytorch_version: "2.4.1", cuda_version: "12.1.0" }
111+
- { python_version: "3.12", pytorch_version: "2.5.0", cuda_version: "12.1.0" }
112112
steps:
113113
- uses: actions/checkout@v4
114114
- uses: docker/setup-buildx-action@v3
@@ -121,7 +121,7 @@ jobs:
121121
- name: shorten Torch version
122122
run: |
123123
# convert 1.10.2 to 1.10
124-
pt_version=$(echo ${{ matrix.pytorch }} | cut -d. -f1,2)
124+
pt_version=$(echo ${{ matrix.pytorch_version }} | cut -d. -f1,2)
125125
echo "PT_VERSION=$pt_version" >> $GITHUB_ENV
126126
- uses: docker/build-push-action@v6
127127
with:
@@ -131,7 +131,7 @@ jobs:
131131
CUDA_VERSION=${{ matrix.cuda_version }}
132132
file: dockers/base-cuda/Dockerfile
133133
push: ${{ env.PUSH_NIGHTLY }}
134-
tags: "pytorchlightning/pytorch_lightning:base-cuda-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}-cuda${{ matrix.cuda_version }}"
134+
tags: "pytorchlightning/pytorch_lightning:base-cuda-py${{ matrix.python_version }}-torch${{ env.PT_VERSION }}-cuda${{ matrix.cuda_version }}"
135135
timeout-minutes: 95
136136
- uses: ravsamhq/notify-slack-action@v2
137137
if: failure() && env.PUSH_NIGHTLY == 'true'

0 commit comments

Comments
 (0)