ci: publish docker image to docker hub

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