Merge pull request #19 from slintes/fix-metal3 #12
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: Publish Container Images | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
jobs: | |
push_to_registry: | |
name: Build and push images to quay.io/medik8s | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Log in to Quay.io | |
uses: docker/login-action@v2 | |
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 |