-
Notifications
You must be signed in to change notification settings - Fork 3.6k
CI/CD: Add CUDA version to docker image tags #13831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
73c793a
append cuda version to tags
akihironitta 46a05fc
revertme: push to hub
akihironitta 1f0e5a4
Update docker readme
akihironitta 6b23771
Build base-conda-py3.9-torch1.12-cuda11.3.1
akihironitta 8a531ad
Use new images in conda tests
akihironitta 0f7d534
revertme: push to hub
akihironitta 62c3d3d
Revert "revertme: push to hub"
akihironitta e0b4fb8
Revert "revertme: push to hub"
akihironitta e08f694
Run conda if workflow edited
akihironitta 72a8492
Run gpu testing if workflow edited
akihironitta 8c77bbf
Merge branch 'master' into ci/rename-docker-tags
akihironitta 3c35bef
Use new tags in release/Dockerfile
akihironitta cfd45f7
Build base-cuda and PL release images with all combinations
akihironitta 69de92f
Update release docker
akihironitta 1112450
Update conda from py3.9-torch1.12 to py3.10-torch.1.12
akihironitta e1901f0
Fix ubuntu version
akihironitta 07a335c
Revert conda
akihironitta 58fe926
revertme: push to hub
akihironitta 139e9ea
Don't build Python 3.10 for now...
akihironitta 7f3385e
Fix pl release builder
akihironitta 109bc2f
updating version contribute to the error? https://github.com/docker/b…
akihironitta 01f0d06
Update actions' versions
akihironitta d9a2a4c
Update slack user to notify
akihironitta 6c58530
Merge branch 'master' into ci/rename-docker-tags
akihironitta 6db670e
Don't use 11.6.0 to avoid bagua incompatibility
akihironitta b43d9e0
Merge branch 'master' into ci/rename-docker-tags
akihironitta b5643af
Don't use 11.1, and use 11.1.1
akihironitta b0a66db
Merge branch 'ci/update-slack-user' into ci/rename-docker-tags
akihironitta 72d9b9e
Update .github/workflows/ci-pytorch_test-conda.yml
akihironitta a7a1fac
Merge branch 'master' into ci/rename-docker-tags
akihironitta 49dc2fe
Update trigger
akihironitta 7e1372e
Ignore artfacts from tutorials
akihironitta cd4a107
Trim docker images to distribute
akihironitta 4b814e7
Add an image for tutorials
akihironitta d134b69
Update conda image 3.8x1.10
akihironitta ea2ce9a
Merge branch 'master' into ci/rename-docker-tags
akihironitta 3a10724
Try different conda variants
akihironitta 0c2af7d
Merge branch 'ci/rename-docker-tags' of github.com:Lightning-AI/light…
akihironitta da6cecf
Merge branch 'master' into ci/rename-docker-tags
akihironitta 69e6d95
Merge branch 'master' into ci/rename-docker-tags
akihironitta 832fe94
Merge branch 'master' into ci/rename-docker-tags
akihironitta 0da9d97
Merge branch 'master' into ci/rename-docker-tags
akihironitta b7188dd
No need to set cuda for conda jobs
akihironitta 7f61fcd
Update who to notify ipu failure
akihironitta 6431d0e
Don't push
akihironitta 5a91844
update filenaem
akihironitta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| name: Docker | ||
| # https://www.docker.com/blog/first-docker-github-action-is-here | ||
| # https://github.com/docker/build-push-action | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master, "release/*"] | ||
|
|
@@ -15,8 +14,12 @@ jobs: | |
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python_version: ["3.7", "3.8", "3.9"] | ||
| pytorch_version: ["1.9", "1.10"] | ||
| include: | ||
| # We only release one docker image per PyTorch version. | ||
| - {python_version: "3.9", pytorch_version: "1.9", cuda_version: "11.1.1"} | ||
| - {python_version: "3.9", pytorch_version: "1.10", cuda_version: "11.3.1"} | ||
| - {python_version: "3.9", pytorch_version: "1.11", cuda_version: "11.3.1"} | ||
| - {python_version: "3.9", pytorch_version: "1.12", cuda_version: "11.3.1"} | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
|
|
@@ -32,19 +35,29 @@ jobs: | |
| username: ${{ secrets.DOCKER_USERNAME }} | ||
| password: ${{ secrets.DOCKER_PASSWORD }} | ||
| dockerfile: dockers/release/Dockerfile | ||
| build_args: PYTHON_VERSION=${{ matrix.python_version }},PYTORCH_VERSION=${{ matrix.pytorch_version }},LIGHTNING_VERSION=${{ steps.get_version.outputs.RELEASE_VERSION }} | ||
| tags: "${{ steps.get_version.outputs.RELEASE_VERSION }}-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }},latest-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}" | ||
| build_args: | | ||
| PYTHON_VERSION=${{ matrix.python_version }} | ||
| PYTORCH_VERSION=${{ matrix.pytorch_version }} | ||
| CUDA_VERSION=${{ matrix.cuda_version }} | ||
| LIGHTNING_VERSION=${{ steps.get_version.outputs.RELEASE_VERSION }} | ||
| tags: | | ||
| ${{ steps.get_version.outputs.RELEASE_VERSION }}-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}-cuda${{ matrix.cuda_version }} | ||
| latest-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}-cuda${{ matrix.cuda_version }} | ||
| timeout-minutes: 55 | ||
|
|
||
| - name: Publish Latest to Docker | ||
| uses: docker/[email protected] | ||
| # only on releases and latest Python and PyTorch | ||
| if: matrix.python_version == '3.9' && matrix.pytorch_version == '1.10' | ||
| # Only latest Python and PyTorch | ||
| if: matrix.python_version == '3.9' && matrix.pytorch_version == '1.12' | ||
| with: | ||
| repository: pytorchlightning/pytorch_lightning | ||
| username: ${{ secrets.DOCKER_USERNAME }} | ||
| password: ${{ secrets.DOCKER_PASSWORD }} | ||
| dockerfile: dockers/release/Dockerfile | ||
| build_args: PYTHON_VERSION=${{ matrix.python_version }},PYTORCH_VERSION=${{ matrix.pytorch_version }},LIGHTNING_VERSION=${{ steps.get_version.outputs.RELEASE_VERSION }} | ||
| build_args: | | ||
| PYTHON_VERSION=${{ matrix.python_version }} | ||
| PYTORCH_VERSION=${{ matrix.pytorch_version }} | ||
| CUDA_VERSION=${{ matrix.cuda_version }} | ||
| LIGHTNING_VERSION=${{ steps.get_version.outputs.RELEASE_VERSION }} | ||
| tags: "latest" | ||
| timeout-minutes: 55 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -165,3 +165,9 @@ hars* | |
| artifacts/* | ||
| *docs/examples* | ||
| *docs/source-app/api* | ||
|
|
||
| # tutorials | ||
| our_model.tar | ||
| test.png | ||
| saved_models | ||
| data/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.