Deploy images CentOS8 #10
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 CentOS8 | |
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 | |
platforms: | |
description: Platforms to build for | |
type: choice | |
default: linux/amd64,linux/arm64 | |
options: | |
- linux/amd64,linux/arm64 | |
- linux/amd64 | |
- linux/arm64 | |
jobs: | |
c8-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_centos8_py38 | |
platforms: ${{ github.event.inputs.platforms }} | |
tags: riga/law:c8-py38 | |
push_image: ${{ github.event.inputs.push_image == 'true' }} | |
c8-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_centos8_py39 | |
platforms: ${{ github.event.inputs.platforms }} | |
tags: riga/law:c8-py39 | |
push_image: ${{ github.event.inputs.push_image == 'true' }} | |
c8-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_centos8_py310 | |
platforms: ${{ github.event.inputs.platforms }} | |
tags: riga/law:c8-py310 | |
push_image: ${{ github.event.inputs.push_image == 'true' }} | |
c8-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_centos8_py311 | |
platforms: ${{ github.event.inputs.platforms }} | |
tags: riga/law:c8-py311,riga/law:c8-py3,riga/law:c8 | |
push_image: ${{ github.event.inputs.push_image == 'true' }} | |
c8-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_centos8_py312 | |
platforms: ${{ github.event.inputs.platforms }} | |
tags: riga/law:c8-py312 | |
push_image: ${{ github.event.inputs.push_image == 'true' }} |