ci: restore ghcr docker image publishing

This commit is contained in:
ShukeBta
2026-05-29 01:21:17 +08:00
parent b0387ed40e
commit 895444b90f
6 changed files with 14 additions and 14 deletions
+6 -6
View File
@@ -6,6 +6,7 @@ on:
permissions:
contents: read
packages: write
jobs:
docker:
@@ -16,19 +17,18 @@ jobs:
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
- name: Log in to GHCR
uses: docker/login-action@v3
with:
# Configure these in GitHub repository Settings → Secrets and variables → Actions.
# DOCKERHUB_USERNAME should normally be "shukbet".
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: shukbet/mediastationgo
images: ghcr.io/shukebta/mediastation-go
tags: |
type=raw,value=latest
type=ref,event=tag