Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build and push image to quay.io/fedora/ruby-33 repository #548

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and push container images to Quay.io registry
on:
push:
branches:
- master
schedule:
- cron: '0 1 * * 3'

jobs:
build-and-push:
if: github.repository_owner == 'sclorg'
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- dockerfile: "3.3/Dockerfile.fedora"
registry_namespace: "fedora"
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME"
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN"
tag: "33"
docker_context: "3.3"
image_name: "ruby-33"

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 }}
phracek marked this conversation as resolved.
Show resolved Hide resolved
image_name: ${{ matrix.image_name }}
archs: amd64, arm64
readme: "${{ matrix.docker_context }}/README.md"
quay_application_token: ${{ secrets.QUAY_IMAGE_SCLORG_UPDATE_DESC }}