@@ -29,17 +29,22 @@ jobs:
2929 strategy :
3030 fail-fast : false
3131 matrix :
32- # the config used in '.azure-pipelines/gpu-tests.yml' since the Dockerfile uses the cuda image
33- python_version : ["3.9"]
34- pytorch_version : ["1.12"]
32+ include :
33+ # We only release one docker image per PyTorch version.
34+ # The matrix here is the same as the one in release-docker.yml.
35+ - {python_version: "3.9", pytorch_version: "1.9", cuda_version: "11.1.1"}
36+ - {python_version: "3.9", pytorch_version: "1.10", cuda_version: "11.3.1"}
37+ - {python_version: "3.9", pytorch_version: "1.11", cuda_version: "11.3.1"}
38+ - {python_version: "3.9", pytorch_version: "1.12", cuda_version: "11.3.1"}
3539 steps :
36- - uses : actions/checkout@v2
40+ - uses : actions/checkout@v3
3741 - uses : docker/setup-buildx-action@v2
38- - uses : docker/build-push-action@v2
42+ - uses : docker/build-push-action@v3
3943 with :
4044 build-args : |
4145 PYTHON_VERSION=${{ matrix.python_version }}
4246 PYTORCH_VERSION=${{ matrix.pytorch_version }}
47+ CUDA_VERSION=${{ matrix.cuda_version }}
4348 file : dockers/release/Dockerfile
4449 push : false # pushed in release-docker.yml only when PL is released
4550 timeout-minutes : 50
@@ -53,14 +58,14 @@ jobs:
5358 python_version : ["3.7"]
5459 xla_version : ["1.12"]
5560 steps :
56- - uses : actions/checkout@v2
61+ - uses : actions/checkout@v3
5762 - uses : docker/setup-buildx-action@v2
58- - uses : docker/login-action@v1
63+ - uses : docker/login-action@v2
5964 if : env.PUSH_TO_HUB == 'true'
6065 with :
6166 username : ${{ secrets.DOCKER_USERNAME }}
6267 password : ${{ secrets.DOCKER_PASSWORD }}
63- - uses : docker/build-push-action@v2
68+ - uses : docker/build-push-action@v3
6469 with :
6570 build-args : |
6671 PYTHON_VERSION=${{ matrix.python_version }}
@@ -85,30 +90,31 @@ jobs:
8590 fail-fast : false
8691 matrix :
8792 include :
88- # the config used in '.azure-pipelines/gpu-tests.yml'
89- - {python_version: "3.9", pytorch_version: "1.12", cuda_version: "11.3.1", ubuntu_version: "20.04"}
90- # latest (used in Tutorials)
91- - {python_version: "3.8", pytorch_version: "1.9", cuda_version: "11.1.1", ubuntu_version: "20.04"}
92- - {python_version: "3.9", pytorch_version: "1.10", cuda_version: "11.1.1", ubuntu_version: "20.04"}
93- - {python_version: "3.9", pytorch_version: "1.11", cuda_version: "11.3.1", ubuntu_version: "20.04"}
93+ # These are the base images for PL release docker images,
94+ # so include at least all of the combinations in release-dockers.yml.
95+ - {python_version: "3.9", pytorch_version: "1.9", cuda_version: "11.1.1"}
96+ - {python_version: "3.9", pytorch_version: "1.10", cuda_version: "11.3.1"}
97+ - {python_version: "3.9", pytorch_version: "1.11", cuda_version: "11.3.1"}
98+ - {python_version: "3.9", pytorch_version: "1.12", cuda_version: "11.3.1"}
99+ # Used in Lightning-AI/tutorials
100+ - {python_version: "3.8", pytorch_version: "1.9", cuda_version: "11.1.1"}
94101 steps :
95- - uses : actions/checkout@v2
102+ - uses : actions/checkout@v3
96103 - uses : docker/setup-buildx-action@v2
97- - uses : docker/login-action@v1
104+ - uses : docker/login-action@v2
98105 if : env.PUSH_TO_HUB == 'true'
99106 with :
100107 username : ${{ secrets.DOCKER_USERNAME }}
101108 password : ${{ secrets.DOCKER_PASSWORD }}
102- - uses : docker/build-push-action@v2
109+ - uses : docker/build-push-action@v3
103110 with :
104111 build-args : |
105112 PYTHON_VERSION=${{ matrix.python_version }}
106113 PYTORCH_VERSION=${{ matrix.pytorch_version }}
107114 CUDA_VERSION=${{ matrix.cuda_version }}
108- UBUNTU_VERSION=${{ matrix.ubuntu_version }}
109115 file : dockers/base-cuda/Dockerfile
110116 push : ${{ env.PUSH_TO_HUB }}
111- tags : pytorchlightning/pytorch_lightning:base-cuda-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}
117+ tags : pytorchlightning/pytorch_lightning:base-cuda-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}-cuda${{ matrix.cuda_version }}
112118 timeout-minutes : 95
113119 - uses : ravsamhq/notify-slack-action@v1
114120 if : failure() && env.PUSH_TO_HUB == 'true'
@@ -126,25 +132,23 @@ jobs:
126132 fail-fast : false
127133 matrix :
128134 include :
129- - {python_version: "3.8", pytorch_version: "1.9", cuda_version: "11.1.1"}
130- - {python_version: "3.8", pytorch_version: "1.10", cuda_version: "11.1.1"}
131- - {python_version: "3.9", pytorch_version: "1.11", cuda_version: "11.3.1"}
132- # nightly: add when there's a release candidate
133- # - {python_version: "3.9", pytorch_version: "1.12"}
135+ - {python_version: "3.8", pytorch_version: "1.9"}
136+ - {python_version: "3.8", pytorch_version: "1.10"}
137+ - {python_version: "3.9", pytorch_version: "1.11"}
138+ - {python_version: "3.9", pytorch_version: "1.12"}
134139 steps :
135- - uses : actions/checkout@v2
140+ - uses : actions/checkout@v3
136141 - uses : docker/setup-buildx-action@v2
137- - uses : docker/login-action@v1
142+ - uses : docker/login-action@v2
138143 if : env.PUSH_TO_HUB == 'true'
139144 with :
140145 username : ${{ secrets.DOCKER_USERNAME }}
141146 password : ${{ secrets.DOCKER_PASSWORD }}
142- - uses : docker/build-push-action@v2
147+ - uses : docker/build-push-action@v3
143148 with :
144149 build-args : |
145150 PYTHON_VERSION=${{ matrix.python_version }}
146151 PYTORCH_VERSION=${{ matrix.pytorch_version }}
147- CUDA_VERSION=${{ matrix.cuda_version }}
148152 file : dockers/base-conda/Dockerfile
149153 push : ${{ env.PUSH_TO_HUB }}
150154 tags : pytorchlightning/pytorch_lightning:base-conda-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}
@@ -168,14 +172,14 @@ jobs:
168172 # the config used in 'dockers/ci-runner-ipu/Dockerfile'
169173 - {python_version: "3.9", pytorch_version: "1.9"}
170174 steps :
171- - uses : actions/checkout@v2
175+ - uses : actions/checkout@v3
172176 - uses : docker/setup-buildx-action@v2
173- - uses : docker/login-action@v1
177+ - uses : docker/login-action@v2
174178 if : env.PUSH_TO_HUB == 'true'
175179 with :
176180 username : ${{ secrets.DOCKER_USERNAME }}
177181 password : ${{ secrets.DOCKER_PASSWORD }}
178- - uses : docker/build-push-action@v2
182+ - uses : docker/build-push-action@v3
179183 with :
180184 build-args : |
181185 PYTHON_VERSION=${{ matrix.python_version }}
@@ -184,7 +188,7 @@ jobs:
184188 push : ${{ env.PUSH_TO_HUB }}
185189 tags : pytorchlightning/pytorch_lightning:base-ipu-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}
186190 timeout-minutes : 100
187- - uses : docker/build-push-action@v2
191+ - uses : docker/build-push-action@v3
188192 with :
189193 build-args : |
190194 PYTHON_VERSION=${{ matrix.python_version }}
@@ -199,7 +203,7 @@ jobs:
199203 status : ${{ job.status }}
200204 token : ${{ secrets.GITHUB_TOKEN }}
201205 notification_title : ${{ format('IPU; {0} py{1} for *{2}*', runner.os, matrix.python_version, matrix.pytorch_version) }}
202- message_format : ' {emoji} *{workflow}* {status_message}, see <{run_url}|detail>, cc: <@U01BULUS2BG >' # SeanNaren
206+ message_format : ' {emoji} *{workflow}* {status_message}, see <{run_url}|detail>, cc: <@U01GD29QCAV >' # kaushikb11
203207 env :
204208 SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
205209
@@ -212,14 +216,14 @@ jobs:
212216 # the config used in 'dockers/ci-runner-hpu/Dockerfile'
213217 - {gaudi_version: "1.5.0", pytorch_version: "1.11.0"}
214218 steps :
215- - uses : actions/checkout@v2
219+ - uses : actions/checkout@v3
216220 - uses : docker/setup-buildx-action@v2
217- - uses : docker/login-action@v1
221+ - uses : docker/login-action@v2
218222 if : env.PUSH_TO_HUB == 'true'
219223 with :
220224 username : ${{ secrets.DOCKER_USERNAME }}
221225 password : ${{ secrets.DOCKER_PASSWORD }}
222- - uses : docker/build-push-action@v2
226+ - uses : docker/build-push-action@v3
223227 with :
224228 build-args : |
225229 DIST=latest
@@ -243,10 +247,10 @@ jobs:
243247 runs-on : ubuntu-20.04
244248 steps :
245249 - name : Checkout
246- uses : actions/checkout@v2
250+ uses : actions/checkout@v3
247251 - name : Build Conda Docker
248252 # publish master/release
249- uses : docker/build-push-action@v2
253+ uses : docker/build-push-action@v3
250254 with :
251255 file : dockers/nvidia/Dockerfile
252256 push : false
0 commit comments