Support build and push 22, and 22-minimal images to quay.io. #259
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: Build and push images to Quay.io registry | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 1 * * 3' | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'sclorg' | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- dockerfile: "20/Dockerfile.c9s" | |
docker_context: 20 | |
registry_namespace: "sclorg" | |
tag: "c9s" | |
image_name: "nodejs-20-c9s" | |
quayio_username: "QUAY_IMAGE_SCLORG_BUILDER_USERNAME" | |
quayio_token: "QUAY_IMAGE_SCLORG_BUILDER_TOKEN" | |
- dockerfile: "20-minimal/Dockerfile.c9s" | |
docker_context: 20-minimal | |
registry_namespace: "sclorg" | |
tag: "c9s" | |
image_name: "nodejs-20-minimal-c9s" | |
quayio_username: "QUAY_IMAGE_SCLORG_BUILDER_USERNAME" | |
quayio_token: "QUAY_IMAGE_SCLORG_BUILDER_TOKEN" | |
- dockerfile: "22/Dockerfile.c10s" | |
docker_context: 22 | |
registry_namespace: "sclorg" | |
tag: "c10s" | |
image_name: "nodejs-22-c10s" | |
quayio_username: "QUAY_IMAGE_SCLORG_BUILDER_USERNAME" | |
quayio_token: "QUAY_IMAGE_SCLORG_BUILDER_TOKEN" | |
- dockerfile: "22-minimal/Dockerfile.c10s" | |
docker_context: 22-minimal | |
registry_namespace: "sclorg" | |
tag: "c10s" | |
image_name: "nodejs-22-minimal-c10s" | |
quayio_username: "QUAY_IMAGE_SCLORG_BUILDER_USERNAME" | |
quayio_token: "QUAY_IMAGE_SCLORG_BUILDER_TOKEN" | |
- dockerfile: "18/Dockerfile.fedora" | |
docker_context: 18 | |
registry_namespace: "fedora" | |
tag: "fedora" | |
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME" | |
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN" | |
image_name: "nodejs-18" | |
- dockerfile: "18-minimal/Dockerfile.fedora" | |
docker_context: 18-minimal | |
registry_namespace: "fedora" | |
tag: "fedora" | |
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME" | |
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN" | |
image_name: "nodejs-18-minimal" | |
- dockerfile: "20/Dockerfile.fedora" | |
docker_context: 20 | |
registry_namespace: "fedora" | |
tag: "fedora" | |
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME" | |
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN" | |
image_name: "nodejs-20" | |
- dockerfile: "20-minimal/Dockerfile.fedora" | |
docker_context: 20-minimal | |
registry_namespace: "fedora" | |
tag: "fedora" | |
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME" | |
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN" | |
image_name: "nodejs-20-minimal" | |
- dockerfile: "22/Dockerfile.fedora" | |
docker_context: 22 | |
registry_namespace: "fedora" | |
tag: "fedora" | |
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME" | |
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN" | |
image_name: "nodejs-22" | |
- dockerfile: "22-minimal/Dockerfile.fedora" | |
docker_context: 22-minimal | |
registry_namespace: "fedora" | |
tag: "fedora" | |
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME" | |
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN" | |
image_name: "nodejs-22-minimal" | |
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 }} | |
docker_context: ${{ matrix.docker_context }} | |
tag: ${{ matrix.tag }} | |
image_name: ${{ matrix.image_name }} | |
readme: "${{ matrix.docker_context }}/README.md" | |
quay_application_token: ${{ secrets.QUAY_IMAGE_SCLORG_UPDATE_DESC }} |