Skip to content

Rebuild & push base image #28

Rebuild & push base image

Rebuild & push base image #28

name: Rebuild & push base image
on:
workflow_dispatch:
schedule:
# At 00:00 on Tuesday.
- cron: "0 0 * * 2"
push:
branches:
- main
paths:
- containers/Dockerfile.base
jobs:
build:
# To not run in forks
if: github.repository_owner == 'packit'
name: Build and push image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
containerfiles: containers/Dockerfile.base
image: base
oci: true
- name: Push To Quay
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: quay.io/packit
username: ${{ secrets.QUAY_IMAGE_BUILDER_USERNAME }}
password: ${{ secrets.QUAY_IMAGE_BUILDER_TOKEN }}