Skip to content

Build and publish a Docker image to ghcr.io #5

Build and publish a Docker image to ghcr.io

Build and publish a Docker image to ghcr.io #5

Workflow file for this run

name: Build and publish a Docker image to ghcr.io
on:
# publish on releases, e.g. v2.1.13 (image tagged as "2.1.13" - "v" prefix is removed)
release:
types: [ published ]
jobs:
docker_publish:
name: "Docker Publish"
runs-on: "ubuntu-24.04"
permissions: write-all
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
# https://github.com/marketplace/actions/push-to-ghcr
- name: Build and publish a Docker image for ${{ github.repository }}
uses: macbre/push-to-ghcr@master
with:
image_name: ${{ github.repository }} # it will be lowercased internally
github_token: ${{ secrets.GITHUB_TOKEN }}