Skip to content

v0.3.10-a

v0.3.10-a #55

Workflow file for this run

on:
release:
types: [published]
jobs:
test:
uses: ./.github/workflows/ci.yml
publish:
runs-on: ubuntu-20.04
needs: test
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get image metadata
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{raw}}
type=raw,value=latest,enable=${{ !github.event.release.prerelease }}
type=raw,value=pre-release,enable=${{ github.event.release.prerelease }}
type=raw,value=stable,enable=${{ !github.event.release.prerelease && github.event.release.target_commitish == 'main'}}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.meta.outputs.tags }}