Skip to content

Publish Docker Image #11

Publish Docker Image

Publish Docker Image #11

Workflow file for this run

name: Publish Docker Image
on:
release:
types: [published]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
# add the release tag to the image as well as the latest tag
tags: ghcr.io/${{ github.repository_owner }}/magic-mirror:latest, ghcr.io/${{ github.repository_owner }}/magic-mirror:${{ github.ref_name }}