@@ -30,17 +30,22 @@ jobs:
3030 strategy :
3131 fail-fast : false
3232 matrix :
33- # the config used in '.azure-pipelines/gpu-tests.yml' since the Dockerfile uses the cuda image
34- python_version : ["3.9"]
35- pytorch_version : ["1.10", "1.11"]
33+ include :
34+ # We only release one docker image per PyTorch version.
35+ # The matrix here is the same as the one in release-docker.yml.
36+ - {python_version: "3.9", pytorch_version: "1.9", cuda_version: "11.1.1"}
37+ - {python_version: "3.9", pytorch_version: "1.10", cuda_version: "11.3.1"}
38+ - {python_version: "3.9", pytorch_version: "1.11", cuda_version: "11.3.1"}
39+ - {python_version: "3.9", pytorch_version: "1.12", cuda_version: "11.3.1"}
3640 steps :
37- - uses : actions/checkout@v2
41+ - uses : actions/checkout@v3
3842 - uses : docker/setup-buildx-action@v2
39- - uses : docker/build-push-action@v2
43+ - uses : docker/build-push-action@v3
4044 with :
4145 build-args : |
4246 PYTHON_VERSION=${{ matrix.python_version }}
4347 PYTORCH_VERSION=${{ matrix.pytorch_version }}
48+ CUDA_VERSION=${{ matrix.cuda_version }}
4449 file : dockers/release/Dockerfile
4550 push : false # pushed in release-docker.yml only when PL is released
4651 timeout-minutes : 50
@@ -54,14 +59,14 @@ jobs:
5459 python_version : ["3.7"]
5560 xla_version : ["1.11"]
5661 steps :
57- - uses : actions/checkout@v2
62+ - uses : actions/checkout@v3
5863 - uses : docker/setup-buildx-action@v2
59- - uses : docker/login-action@v1
64+ - uses : docker/login-action@v2
6065 if : env.PUSH_TO_HUB == 'true'
6166 with :
6267 username : ${{ secrets.DOCKER_USERNAME }}
6368 password : ${{ secrets.DOCKER_PASSWORD }}
64- - uses : docker/build-push-action@v2
69+ - uses : docker/build-push-action@v3
6570 with :
6671 build-args : |
6772 PYTHON_VERSION=${{ matrix.python_version }}
@@ -86,31 +91,31 @@ jobs:
8691 fail-fast : false
8792 matrix :
8893 include :
89- # the config used in '.azure-pipelines/gpu-tests.yml'
90- - {python_version: "3.7", pytorch_version: "1.10", cuda_version: "11.1", ubuntu_version: "20.04"}
91- - {python_version: "3.7", pytorch_version: "1.11", cuda_version: "11.3.1", ubuntu_version: "20.04"}
92- # latest (used in Tutorials)
93- - {python_version: "3.8", pytorch_version: "1.9", cuda_version: "11.1", ubuntu_version: "20.04"}
94- - {python_version: "3.9", pytorch_version: "1.10", cuda_version: "11.1", ubuntu_version: "20.04"}
95- - {python_version: "3.9", pytorch_version: "1.11", cuda_version: "11.3.1", ubuntu_version: "20.04"}
94+ # These are the base images for PL release docker images,
95+ # so include at least all of the combinations in release-dockers.yml.
96+ - {python_version: "3.9", pytorch_version: "1.9", cuda_version: "11.1.1"}
97+ - {python_version: "3.9", pytorch_version: "1.10", cuda_version: "11.3.1"}
98+ - {python_version: "3.9", pytorch_version: "1.11", cuda_version: "11.3.1"}
99+ - {python_version: "3.9", pytorch_version: "1.12", cuda_version: "11.3.1"}
100+ # Used in Lightning-AI/tutorials
101+ - {python_version: "3.8", pytorch_version: "1.9", cuda_version: "11.1.1"}
96102 steps :
97- - uses : actions/checkout@v2
103+ - uses : actions/checkout@v3
98104 - uses : docker/setup-buildx-action@v2
99- - uses : docker/login-action@v1
105+ - uses : docker/login-action@v2
100106 if : env.PUSH_TO_HUB == 'true'
101107 with :
102108 username : ${{ secrets.DOCKER_USERNAME }}
103109 password : ${{ secrets.DOCKER_PASSWORD }}
104- - uses : docker/build-push-action@v2
110+ - uses : docker/build-push-action@v3
105111 with :
106112 build-args : |
107113 PYTHON_VERSION=${{ matrix.python_version }}
108114 PYTORCH_VERSION=${{ matrix.pytorch_version }}
109115 CUDA_VERSION=${{ matrix.cuda_version }}
110- UBUNTU_VERSION=${{ matrix.ubuntu_version }}
111116 file : dockers/base-cuda/Dockerfile
112117 push : ${{ env.PUSH_TO_HUB }}
113- tags : pytorchlightning/pytorch_lightning:base-cuda-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}
118+ tags : pytorchlightning/pytorch_lightning:base-cuda-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}-cuda${{ matrix.cuda_version }}
114119 timeout-minutes : 95
115120 - uses : ravsamhq/notify-slack-action@v1
116121 if : failure() && env.PUSH_TO_HUB == 'true'
@@ -128,25 +133,23 @@ jobs:
128133 fail-fast : false
129134 matrix :
130135 include :
131- - {python_version: "3.8", pytorch_version: "1.9", cuda_version: "11.1"}
132- - {python_version: "3.8", pytorch_version: "1.10", cuda_version: "11.1"}
133- - {python_version: "3.9", pytorch_version: "1.11", cuda_version: "11.3.1"}
134- # nightly: add when there's a release candidate
135- # - {python_version: "3.9", pytorch_version: "1.12"}
136+ - {python_version: "3.8", pytorch_version: "1.9"}
137+ - {python_version: "3.8", pytorch_version: "1.10"}
138+ - {python_version: "3.9", pytorch_version: "1.11"}
139+ - {python_version: "3.9", pytorch_version: "1.12"}
136140 steps :
137- - uses : actions/checkout@v2
141+ - uses : actions/checkout@v3
138142 - uses : docker/setup-buildx-action@v2
139- - uses : docker/login-action@v1
143+ - uses : docker/login-action@v2
140144 if : env.PUSH_TO_HUB == 'true'
141145 with :
142146 username : ${{ secrets.DOCKER_USERNAME }}
143147 password : ${{ secrets.DOCKER_PASSWORD }}
144- - uses : docker/build-push-action@v2
148+ - uses : docker/build-push-action@v3
145149 with :
146150 build-args : |
147151 PYTHON_VERSION=${{ matrix.python_version }}
148152 PYTORCH_VERSION=${{ matrix.pytorch_version }}
149- CUDA_VERSION=${{ matrix.cuda_version }}
150153 file : dockers/base-conda/Dockerfile
151154 push : ${{ env.PUSH_TO_HUB }}
152155 tags : pytorchlightning/pytorch_lightning:base-conda-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}
@@ -170,14 +173,14 @@ jobs:
170173 # the config used in 'dockers/ci-runner-ipu/Dockerfile'
171174 - {python_version: "3.9", pytorch_version: "1.9"}
172175 steps :
173- - uses : actions/checkout@v2
176+ - uses : actions/checkout@v3
174177 - uses : docker/setup-buildx-action@v2
175- - uses : docker/login-action@v1
178+ - uses : docker/login-action@v2
176179 if : env.PUSH_TO_HUB == 'true'
177180 with :
178181 username : ${{ secrets.DOCKER_USERNAME }}
179182 password : ${{ secrets.DOCKER_PASSWORD }}
180- - uses : docker/build-push-action@v2
183+ - uses : docker/build-push-action@v3
181184 with :
182185 build-args : |
183186 PYTHON_VERSION=${{ matrix.python_version }}
@@ -186,7 +189,7 @@ jobs:
186189 push : ${{ env.PUSH_TO_HUB }}
187190 tags : pytorchlightning/pytorch_lightning:base-ipu-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}
188191 timeout-minutes : 100
189- - uses : docker/build-push-action@v2
192+ - uses : docker/build-push-action@v3
190193 with :
191194 build-args : |
192195 PYTHON_VERSION=${{ matrix.python_version }}
@@ -201,7 +204,7 @@ jobs:
201204 status : ${{ job.status }}
202205 token : ${{ secrets.GITHUB_TOKEN }}
203206 notification_title : ${{ format('IPU; {0} py{1} for *{2}*', runner.os, matrix.python_version, matrix.pytorch_version) }}
204- message_format : ' {emoji} *{workflow}* {status_message}, see <{run_url}|detail>, cc: <@U01BULUS2BG >' # SeanNaren
207+ message_format : ' {emoji} *{workflow}* {status_message}, see <{run_url}|detail>, cc: <@U01GD29QCAV >' # kaushikb11
205208 env :
206209 SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
207210
@@ -214,14 +217,14 @@ jobs:
214217 # the config used in 'dockers/ci-runner-hpu/Dockerfile'
215218 - {gaudi_version: "1.5.0", pytorch_version: "1.11.0"}
216219 steps :
217- - uses : actions/checkout@v2
220+ - uses : actions/checkout@v3
218221 - uses : docker/setup-buildx-action@v2
219- - uses : docker/login-action@v1
222+ - uses : docker/login-action@v2
220223 if : env.PUSH_TO_HUB == 'true'
221224 with :
222225 username : ${{ secrets.DOCKER_USERNAME }}
223226 password : ${{ secrets.DOCKER_PASSWORD }}
224- - uses : docker/build-push-action@v2
227+ - uses : docker/build-push-action@v3
225228 with :
226229 build-args : |
227230 DIST=latest
@@ -245,10 +248,10 @@ jobs:
245248 runs-on : ubuntu-20.04
246249 steps :
247250 - name : Checkout
248- uses : actions/checkout@v2
251+ uses : actions/checkout@v3
249252 - name : Build Conda Docker
250253 # publish master/release
251- uses : docker/build-push-action@v2
254+ uses : docker/build-push-action@v3
252255 with :
253256 file : dockers/nvidia/Dockerfile
254257 push : false
0 commit comments