Skip to content

Merge pull request #9 from mbaldessari/update-must-gather #8

Merge pull request #9 from mbaldessari/update-must-gather

Merge pull request #9 from mbaldessari/update-must-gather #8

Workflow file for this run

name: Publish Container Images
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
push_to_registry:
name: Build and push images to quay.io/hybridcloudpatterns
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false
- name: Log in to Quay.io
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
registry: quay.io
- name: Build and push latest image, for pushes
if: ${{ github.ref_type != 'tag' }}
run: make build
- name: Build and push versioned image, for tags
if: ${{ github.ref_type == 'tag' }}
run: IMAGE_TAG=$GITHUB_REF_NAME make build