Deploy images AlmaLinux9 #30
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
name: Deploy images AlmaLinux9 | |
on: | |
workflow_dispatch: | |
inputs: | |
push_image: | |
description: Push to DockerHub | |
type: boolean | |
default: false | |
specific_job: | |
description: Specific job to run | |
type: choice | |
default: none | |
options: | |
- none | |
- py38 | |
- py39 | |
- py310 | |
- py311 | |
- py312 | |
- py313 | |
- example | |
platforms: | |
description: Platforms to build for | |
type: choice | |
default: linux/amd64,linux/arm64 | |
options: | |
- linux/amd64,linux/arm64 | |
- linux/amd64 | |
- linux/arm64 | |
jobs: | |
a9-py38: | |
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py38') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Build and deploy image 🐳 | |
uses: ./.github/actions/build-image | |
with: | |
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | |
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | |
docker_file: docker/Dockerfile_alma9_py38 | |
platforms: ${{ github.event.inputs.platforms }} | |
tags: riga/law:a9-py38,riga/law:py38 | |
push_image: ${{ github.event.inputs.push_image == 'true' }} | |
a9-py39: | |
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py39') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Build and deploy image 🐳 | |
uses: ./.github/actions/build-image | |
with: | |
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | |
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | |
docker_file: docker/Dockerfile_alma9_py39 | |
platforms: ${{ github.event.inputs.platforms }} | |
tags: riga/law:a9-py39,riga/law:py39 | |
push_image: ${{ github.event.inputs.push_image == 'true' }} | |
a9-py310: | |
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py310') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Build and deploy image 🐳 | |
uses: ./.github/actions/build-image | |
with: | |
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | |
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | |
docker_file: docker/Dockerfile_alma9_py310 | |
platforms: ${{ github.event.inputs.platforms }} | |
tags: riga/law:a9-py310,riga/law:py310 | |
push_image: ${{ github.event.inputs.push_image == 'true' }} | |
a9-py311: | |
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py311') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Build and deploy image 🐳 | |
uses: ./.github/actions/build-image | |
with: | |
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | |
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | |
docker_file: docker/Dockerfile_alma9_py311 | |
platforms: ${{ github.event.inputs.platforms }} | |
tags: riga/law:a9-py311,riga/law:a9-py3,riga/law:a9,riga/law:py311,riga/law:py3,riga/law:latest | |
push_image: ${{ github.event.inputs.push_image == 'true' }} | |
a9-py312: | |
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py312') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Build and deploy image 🐳 | |
uses: ./.github/actions/build-image | |
with: | |
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | |
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | |
docker_file: docker/Dockerfile_alma9_py312 | |
platforms: ${{ github.event.inputs.platforms }} | |
tags: riga/law:a9-py312,riga/law:py312 | |
push_image: ${{ github.event.inputs.push_image == 'true' }} | |
a9-py313: | |
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py313') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Build and deploy image 🐳 | |
uses: ./.github/actions/build-image | |
with: | |
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | |
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | |
docker_file: docker/Dockerfile_alma9_py313 | |
platforms: ${{ github.event.inputs.platforms }} | |
tags: riga/law:a9-py313,riga/law:py313 | |
push_image: ${{ github.event.inputs.push_image == 'true' }} | |
example: | |
if: ${{ github.event.inputs.push_image == 'true' && (github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'example')) }} | |
needs: a9-py311 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Build and deploy image 🐳 | |
uses: ./.github/actions/build-image | |
with: | |
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | |
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | |
docker_file: docker/Dockerfile_example | |
platforms: ${{ github.event.inputs.platforms }} | |
tags: riga/law:example | |
push_image: true |