This repository has been archived by the owner on Dec 2, 2024. It is now read-only.
Publish Docker Image #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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 }}/magic-mirror:latest, ghcr.io/${{ github.repository_owner }}/magic-mirror:${{ github.ref_name }} |