-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Streamline docker image builds, add alma9 images. (#169)
* Add a9 py38-11 images. * Update tags, test composite action. * Update action template. * Typo. * Move checkout action. * Pass secrets as inputs. * Use composite actions for a9. * Use input choice. * Test input type. * Fix boolean usage. * Use action template.
- Loading branch information
Showing
16 changed files
with
616 additions
and
269 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
Oops, something went wrong.