Skip to content

Deploy images CentOS8 #7

Deploy images CentOS8

Deploy images CentOS8 #7

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
- py37
- py38
- py39
- py310
- py311
platforms:
description: Platforms to build for
type: choice
default: linux/amd64,linux/arm64
options:
- linux/amd64,linux/arm64
- linux/amd64
- linux/arm64
jobs:
c8-py37:
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py37') }}
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_py37
platforms: ${{ github.event.inputs.platforms }}
tags: riga/law:c8-py37
push_image: ${{ github.event.inputs.push_image == 'true' }}
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' }}