From 2b0927546547bd8fde485c1a53132e68b4d02faa Mon Sep 17 00:00:00 2001 From: MaoXiaodong Date: Mon, 12 Oct 2026 14:24:39 +0800 Subject: [PATCH] ci: add Docker Hub publishing support - Add Docker Hub login step using DOCKERHUB_USERNAME and DOCKERHUB_TOKEN secrets - Include Docker Hub image in metadata alongside GHCR --- .github/workflows/publish.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c094232..8352151 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -79,6 +79,12 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -90,7 +96,9 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ghcr.io/${{ github.repository }} + images: | + ghcr.io/${{ github.repository }} + ${{ secrets.DOCKERHUB_USERNAME }}/freya tags: | type=raw,value=${{ steps.pkg_version.outputs.version }} type=raw,value=latest