Skip to content

.github/workflows/publish.yml #35

.github/workflows/publish.yml

.github/workflows/publish.yml #35

Workflow file for this run

on: [release]
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.prerelease}}
type=raw,value=pre-release,enable={{!github.event.prerelease}}
# - name: Build and push Docker image
# uses: docker/build-push-action@v2
# with:
# push: true
# tags: ${{ steps.meta.outputs.tags }}