Skip to content

Initial MVP - "It Works" #1

Initial MVP - "It Works"

Initial MVP - "It Works" #1

Workflow file for this run

name: Publish Docker Image
on:
release:
# Publishing a release for an existing tag (via the GitHub UI) does not
# emit a push event, so include this trigger to build the image when a
# release goes live.
types: [ published ]
jobs:
publish:
name: Publish Docker Image to GHCR
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=ref,event=tag
- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
file: deploy/docker/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}