Skip to content

v2.1.1

v2.1.1 #9

Workflow file for this run

name: Publish container image
on:
release:
types: [published]
jobs:
publish-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Extract tag
run: echo "TAG=$(cat package.json | grep version | cut -f4 -d'"')" >> $GITHUB_ENV
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/asny23/metacog:${{ env.TAG }},ghcr.io/asny23/metacog:latest