Skip to content

Deploy images CentOS8 #12

Deploy images CentOS8

Deploy images CentOS8 #12

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-rc
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-rc
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-rc
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-rc,riga/law:c8-py3-rc,riga/law:c8-rc
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-rc
push_image: ${{ github.event.inputs.push_image == 'true' }}