Skip to content

5.7.1

5.7.1 #41

Workflow file for this run

name: publish
on:
release:
types: [published]
env:
REGISTRY: ghcr.io
jobs:
ghcr:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
if: github.repository_owner == 'Virtool'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Write VERSION file
run: echo ${{ github.event.release.tag_name }} > VERSION
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.GH_USERNAME }}
password: ${{ secrets.GH_TOKEN }}
- name: Extract Metadata
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/virtool/pathoscope
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: .
labels: ${{ steps.meta.outputs.labels }}
push: true
tags: ${{ steps.meta.outputs.tags }}
target: "base"