Skip to content

5.4.1

5.4.1 #17

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: Install Poetry
uses: snok/install-poetry@v1
- name: Write VERSION file
run: echo ${{ github.event.release.tag_name }} > VERSION
- name: Update Version
run: poetry version ${{github.event.release.tag_name}}
- name: Login
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/build-index
- 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