Skip to content

Merge pull request #110 from sgibson91/pre-commit-ci-update-config #52

Merge pull request #110 from sgibson91/pre-commit-ci-update-config

Merge pull request #110 from sgibson91/pre-commit-ci-update-config #52

Workflow file for this run

name: Build Image
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
image-build:
runs-on: ubuntu-latest
if: contains(github.head_ref, 'dependabot') == false || contains(github.head_ref, 'pre-commit') == false
environment: image-build
steps:
- name: Login to Quay.io
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Build image and push if necessary
uses: docker/build-push-action@v5
with:
push: ${{ github.event_name != 'pull_request' }}
tags: quay.io/${{ github.repository }}:latest