Skip to content

Build and upload to Docker registry #2

Build and upload to Docker registry

Build and upload to Docker registry #2

Workflow file for this run

name: Build and upload to Docker registry
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Build and push Docker image
uses: openzim/docker-publish-action@v10
with:
image-name: offspot/metrics
tag-pattern: /^v([0-9.]+)$/
latest-on-tag: true
restrict-to: offspot/metrics
registries: ghcr.io
credentials:
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
repo_description: auto
repo_overview: auto
platforms: |
linux/amd64
linux/arm64