Skip to content

Merge pull request #31 from batzionb/bugfixes #36

Merge pull request #31 from batzionb/bugfixes

Merge pull request #31 from batzionb/bugfixes #36

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/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 version 0.0.1 with latest image tag
if: ${{ github.ref_type != 'tag' }}
run: make docker-build docker-push
- name: Build and push with version from tag
if: ${{ github.ref_type == 'tag' }}
# remove leading 'v' from tag!
run: export VERSION=$(echo $GITHUB_REF_NAME | sed 's/v//') && make docker-build docker-push