Skip to content

Build and push images to Quay.io registry #190

Build and push images to Quay.io registry

Build and push images to Quay.io registry #190

name: Build and push images to Quay.io registry
on:
push:
branches:
- master
schedule:
- cron: '0 1 * * 3'
jobs:
build-and-push:
# To not run in forks
if: github.repository_owner == 'sclorg'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- dockerfile: "2.4/Dockerfile.fedora"
registry_namespace: "fedora"
tag: "2.4"
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME"
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN"
image_name: "httpd-24"
- dockerfile: "2.4-micro/Dockerfile.c9s"
registry_namespace: "sclorg"
tag: "c9s"
image_name: "httpd-24-micro-c9s"
quayio_username: "QUAY_IMAGE_SCLORG_BUILDER_USERNAME"
quayio_token: "QUAY_IMAGE_SCLORG_BUILDER_TOKEN"
- dockerfile: "2.4/Dockerfile.c9s"
registry_namespace: "sclorg"
tag: "c9s"
image_name: "httpd-24-c9s"
quayio_username: "QUAY_IMAGE_SCLORG_BUILDER_USERNAME"
quayio_token: "QUAY_IMAGE_SCLORG_BUILDER_TOKEN"
- dockerfile: "2.4-micro/Dockerfile.c8s"
registry_namespace: "sclorg"
tag: "c8s"
image_name: "httpd-24-micro-c8s"
quayio_username: "QUAY_IMAGE_SCLORG_BUILDER_USERNAME"
quayio_token: "QUAY_IMAGE_SCLORG_BUILDER_TOKEN"
- dockerfile: "2.4-micro/Dockerfile.fedora"
registry_namespace: "fedora"
tag: "2.4"
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME"
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN"
image_name: "httpd-24-micro"
steps:
- name: Build and push to quay.io registry
uses: sclorg/build-and-push-action@v4
with:
registry: "quay.io"
registry_namespace: ${{ matrix.registry_namespace }}
registry_username: ${{ secrets[matrix.quayio_username] }}
registry_token: ${{ secrets[matrix.quayio_token] }}
dockerfile: ${{ matrix.dockerfile }}
tag: ${{ matrix.tag }}
image_name: ${{ matrix.image_name }}