2021-11-10 16:59:10 +00:00
|
|
|
name: Docker
|
2020-09-10 22:38:29 +00:00
|
|
|
# https://www.docker.com/blog/first-docker-github-action-is-here
|
|
|
|
# https://github.com/docker/build-push-action
|
|
|
|
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
|
2021-01-06 16:59:42 +00:00
|
|
|
on: # Trigger the workflow on push or pull request, but only for the master branch
|
2020-09-10 22:38:29 +00:00
|
|
|
push:
|
2021-01-06 16:59:42 +00:00
|
|
|
branches: [master, "release/*"] # include release branches like release/1.0.x
|
2020-09-10 22:38:29 +00:00
|
|
|
pull_request:
|
2020-11-04 09:08:37 +00:00
|
|
|
branches: [master, "release/*"]
|
2021-01-06 16:59:42 +00:00
|
|
|
paths:
|
|
|
|
- "dockers/**"
|
|
|
|
- "!dockers/README.md"
|
2021-05-03 23:06:28 +00:00
|
|
|
- "requirements/*"
|
2021-01-06 16:59:42 +00:00
|
|
|
- "requirements.txt"
|
2022-05-12 13:14:18 +00:00
|
|
|
- "environment.yml"
|
2021-02-09 08:22:35 +00:00
|
|
|
- ".github/workflows/*docker*.yml"
|
2021-01-10 20:33:46 +00:00
|
|
|
- ".github/workflows/events-nightly.yml"
|
2021-01-06 16:59:42 +00:00
|
|
|
- "setup.py"
|
2020-09-10 22:38:29 +00:00
|
|
|
|
2022-02-02 19:48:15 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
|
|
|
|
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
|
|
|
|
|
2020-09-10 22:38:29 +00:00
|
|
|
jobs:
|
2020-10-26 10:47:09 +00:00
|
|
|
build-PL:
|
2020-09-10 22:38:29 +00:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-11-10 16:59:10 +00:00
|
|
|
# the config used in '.azure-pipelines/gpu-tests.yml' since the Dockerfile uses the cuda image
|
2022-04-13 15:24:08 +00:00
|
|
|
python_version: ["3.9"]
|
|
|
|
pytorch_version: ["1.10", "1.11"]
|
2020-09-10 22:38:29 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2020-10-26 10:47:09 +00:00
|
|
|
- name: Build PL Docker
|
2020-11-04 09:08:37 +00:00
|
|
|
# publish master/release
|
2020-10-25 12:16:10 +00:00
|
|
|
uses: docker/build-push-action@v2
|
2020-09-10 22:38:29 +00:00
|
|
|
with:
|
2020-10-25 12:16:10 +00:00
|
|
|
build-args: |
|
|
|
|
PYTHON_VERSION=${{ matrix.python_version }}
|
|
|
|
PYTORCH_VERSION=${{ matrix.pytorch_version }}
|
2020-10-26 10:47:09 +00:00
|
|
|
file: dockers/release/Dockerfile
|
2020-09-10 22:38:29 +00:00
|
|
|
push: false
|
2020-09-22 23:41:35 +00:00
|
|
|
timeout-minutes: 50
|
2020-09-10 22:38:29 +00:00
|
|
|
|
|
|
|
build-XLA:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-10-29 06:48:05 +00:00
|
|
|
# the config used in '.circleci/config.yml`'
|
2021-07-14 15:04:33 +00:00
|
|
|
python_version: ["3.7"]
|
2021-10-29 06:48:05 +00:00
|
|
|
xla_version: ["1.8"]
|
2020-09-10 22:38:29 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2020-10-25 12:16:10 +00:00
|
|
|
- name: Build XLA Docker
|
2020-11-04 09:08:37 +00:00
|
|
|
# publish master/release
|
2020-10-25 12:16:10 +00:00
|
|
|
uses: docker/build-push-action@v2
|
2020-09-10 22:38:29 +00:00
|
|
|
with:
|
2020-10-25 12:16:10 +00:00
|
|
|
build-args: |
|
|
|
|
PYTHON_VERSION=${{ matrix.python_version }}
|
|
|
|
XLA_VERSION=${{ matrix.xla_version }}
|
|
|
|
file: dockers/base-xla/Dockerfile
|
2020-09-10 22:38:29 +00:00
|
|
|
push: false
|
2021-10-25 20:56:47 +00:00
|
|
|
timeout-minutes: 60
|
2020-09-10 22:38:29 +00:00
|
|
|
|
2021-07-14 15:04:33 +00:00
|
|
|
build-CUDA:
|
2020-09-17 18:30:39 +00:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-04-11 15:29:54 +00:00
|
|
|
include:
|
|
|
|
# the config used in '.azure-pipelines/gpu-tests.yml'
|
2022-05-06 02:56:57 +00:00
|
|
|
- {python_version: "3.7", pytorch_version: "1.8", cuda_version: "10.2", ubuntu_version: "18.04"}
|
|
|
|
- {python_version: "3.7", pytorch_version: "1.10", cuda_version: "11.1", ubuntu_version: "20.04"}
|
|
|
|
- {python_version: "3.7", pytorch_version: "1.11", cuda_version: "11.3.1", ubuntu_version: "20.04"}
|
2022-04-21 22:10:42 +00:00
|
|
|
# latest (used in Tutorials)
|
2022-05-06 02:56:57 +00:00
|
|
|
- {python_version: "3.8", pytorch_version: "1.8", cuda_version: "11.1", ubuntu_version: "20.04"}
|
|
|
|
- {python_version: "3.8", pytorch_version: "1.9", cuda_version: "11.1", ubuntu_version: "20.04"}
|
|
|
|
- {python_version: "3.9", pytorch_version: "1.10", cuda_version: "11.1", ubuntu_version: "20.04"}
|
|
|
|
- {python_version: "3.9", pytorch_version: "1.11", cuda_version: "11.3.1", ubuntu_version: "20.04"}
|
2020-09-17 18:30:39 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2020-10-25 12:16:10 +00:00
|
|
|
- name: Build CUDA Docker
|
2020-11-04 09:08:37 +00:00
|
|
|
# publish master/release
|
2020-10-25 12:16:10 +00:00
|
|
|
uses: docker/build-push-action@v2
|
2020-09-17 18:30:39 +00:00
|
|
|
with:
|
2020-10-25 12:16:10 +00:00
|
|
|
build-args: |
|
|
|
|
PYTHON_VERSION=${{ matrix.python_version }}
|
|
|
|
PYTORCH_VERSION=${{ matrix.pytorch_version }}
|
2022-04-21 22:10:42 +00:00
|
|
|
CUDA_VERSION=${{ matrix.cuda_version }}
|
2022-05-06 02:56:57 +00:00
|
|
|
UBUNTU_VERSION=${{ matrix.ubuntu_version }}
|
2020-10-25 12:16:10 +00:00
|
|
|
file: dockers/base-cuda/Dockerfile
|
2020-09-17 18:30:39 +00:00
|
|
|
push: false
|
2022-07-12 23:40:14 +00:00
|
|
|
timeout-minutes: 95
|
2020-10-26 10:47:09 +00:00
|
|
|
|
2021-07-14 15:04:33 +00:00
|
|
|
build-Conda:
|
2020-10-26 10:47:09 +00:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-03-12 09:00:20 +00:00
|
|
|
include:
|
|
|
|
# see: https://pytorch.org/get-started/previous-versions/
|
|
|
|
- {python_version: "3.8", pytorch_version: "1.8", cuda_version: "11.1"}
|
|
|
|
- {python_version: "3.8", pytorch_version: "1.9", cuda_version: "11.1"}
|
|
|
|
- {python_version: "3.8", pytorch_version: "1.10", cuda_version: "11.1"}
|
|
|
|
- {python_version: "3.9", pytorch_version: "1.11", cuda_version: "11.3.1"}
|
2020-10-26 10:47:09 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2021-10-29 06:48:05 +00:00
|
|
|
- name: Build Conda Docker
|
2020-11-04 09:08:37 +00:00
|
|
|
# publish master/release
|
2020-10-26 10:47:09 +00:00
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
build-args: |
|
|
|
|
PYTHON_VERSION=${{ matrix.python_version }}
|
|
|
|
PYTORCH_VERSION=${{ matrix.pytorch_version }}
|
2022-03-12 09:00:20 +00:00
|
|
|
CUDA_VERSION=${{ matrix.cuda_version }}
|
2020-10-26 10:47:09 +00:00
|
|
|
file: dockers/base-conda/Dockerfile
|
|
|
|
push: false
|
2022-07-12 23:40:14 +00:00
|
|
|
timeout-minutes: 95
|
2021-01-29 16:01:03 +00:00
|
|
|
|
2021-05-07 12:07:29 +00:00
|
|
|
build-ipu:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-10-29 06:48:05 +00:00
|
|
|
# the config used in 'dockers/ipu-ci-runner/Dockerfile'
|
2021-11-04 17:26:24 +00:00
|
|
|
python_version: ["3.9"] # latest
|
2022-03-08 18:02:32 +00:00
|
|
|
pytorch_version: ["1.9"]
|
2021-05-07 12:07:29 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build IPU Docker
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
build-args: |
|
|
|
|
PYTHON_VERSION=${{ matrix.python_version }}
|
|
|
|
PYTORCH_VERSION=${{ matrix.pytorch_version }}
|
|
|
|
file: dockers/base-ipu/Dockerfile
|
|
|
|
push: false
|
|
|
|
tags: pytorchlightning/pytorch_lightning:base-ipu-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}
|
|
|
|
timeout-minutes: 50
|
|
|
|
|
|
|
|
- name: Build IPU CI runner Docker
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
build-args: |
|
|
|
|
PYTHON_VERSION=${{ matrix.python_version }}
|
|
|
|
PYTORCH_VERSION=${{ matrix.pytorch_version }}
|
|
|
|
file: dockers/ipu-ci-runner/Dockerfile
|
|
|
|
push: false
|
2021-10-25 20:56:47 +00:00
|
|
|
timeout-minutes: 60
|