Skip to content

5.2.1

5.2.1 #19

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@v3
- name: Write VERSION file
run: echo ${{ github.event.release.tag_name }} > VERSION
- name: Update pyproject.toml version
run: sed -i 's/0\.0\.0/${{ github.event.release.tag_name }}/' pyproject.toml
- name: Login to Registry
uses: docker/login-action@v2
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/nuvs
- name: Build and Push
uses: docker/build-push-action@v4
with:
context: .
labels: ${{ steps.meta.outputs.labels }}
push: true
tags: ${{ steps.meta.outputs.tags }}
target: base