---
name: Build and Push Images

on:
  workflow_dispatch:

jobs:
  build_and_push:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        openshift_version: [4.10.12,4.10.14,4.10.18,4.10.22,4.10.3,4.10.9,4.11.0,4.11.1,4.11.13,4.11.18,4.11.3,4.11.7,4.12.0,4.12.1,4.12.13,4.12.5,4.12.9,4.13.0,4.8.12,4.8.5,4.9.0,4.9.10,4.9.12,4.9.15,4.9.18,4.9.5,4.9.8,latest]
    steps:
    - uses: actions/checkout@v3
    - name: Buildah Action
      uses: redhat-actions/buildah-build@v2
      with:
        tags: quay.io/${{ secrets.REGISTRY_URL }}:${{ matrix.openshift_version }}
        containerfiles: |
          ./build/Containerfile
        build-args: |
          VERSION=${{ matrix.openshift_version }}

          # registry: quay.io
          # username: ${{ secrets.REGISTRY_USER }}
          # password: ${{ secrets.REGISTRY_PASSWORD }}
