-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from cms-ml/feature/multi_arch_images
Docker images with multi-platform support
- Loading branch information
Showing
17 changed files
with
406 additions
and
229 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
inputs: | ||
dockerhub_username: | ||
description: "The DockerHub username." | ||
required: true | ||
|
||
dockerhub_token: | ||
description: "The DockerHub login token." | ||
required: true | ||
|
||
docker_file: | ||
description: "The docker file." | ||
required: true | ||
|
||
tags: | ||
description: "Image tags (csv)." | ||
required: true | ||
|
||
platforms: | ||
description: "Platforms to build for (csv)." | ||
default: "linux/amd64,linux/arm64" | ||
|
||
push_image: | ||
description: "Whether to push to DockerHub." | ||
default: false | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up QEMU 🌈 | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx ✨ | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub 🎪 | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ inputs.dockerhub_username }} | ||
password: ${{ inputs.dockerhub_token }} | ||
|
||
- name: Build and deploy image 🐳 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: docker | ||
file: ${{ inputs.docker_file }} | ||
platforms: ${{ inputs.platforms }} | ||
push: ${{ inputs.push_image }} | ||
tags: ${{ inputs.tags }} |
This file contains 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 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 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 |
---|---|---|
|
@@ -19,3 +19,4 @@ build | |
tmp | ||
docs/_build | ||
.ipynb_checkpoints | ||
.python-version |
This file contains 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 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.