Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Publish Docker Image #8

Publish Docker Image

Publish Docker Image #8

Workflow file for this run

name: Publish Docker Image
env:
IMAGE_NAME: magic-mirror
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: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- 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 }}/$IMAGE_NAME:latest, ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME:${{ github.ref_name }}