Skip to content

.github/workflows/publish.yml #39

.github/workflows/publish.yml

.github/workflows/publish.yml #39

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 }}
# - name: Build and push Docker image
# uses: docker/build-push-action@v2
# with:
# push: true
# tags: ${{ steps.meta.outputs.tags }}