From a2a23a83937105d6d16edb5367a4812522ea5884 Mon Sep 17 00:00:00 2001 From: Chris Cowan Date: Fri, 24 Oct 2025 05:07:28 -0700 Subject: [PATCH] optimized and fixed the missing registry line for dockerhub --- .github/workflows/build.yml | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b910c8..ee3b843 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,26 +17,30 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Log in to GitHub Container Registry + # 🧠 Login to Docker Hub + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: docker.io + username: ${{ github.actor }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + # 🧠 Login to GitHub Container Registry + - name: Login to GHCR uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Log in to Gitea Docker Registry + # 🧠 Login to Gitea + - name: Login to Gitea uses: docker/login-action@v3 with: registry: gitea.calahilstudios.com - username: ${{ secrets.GITEA_USER }} + username: ${{ github.actor }} password: ${{ secrets.GITEA_TOKEN }} - - name: Log in to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USER }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Docker metadata id: meta uses: docker/metadata-action@v5 @@ -52,18 +56,6 @@ jobs: type=sha type=raw,value=latest,enable={{is_default_branch}} - - name: Docker Hub metadata - id: meta-dockerhub - uses: docker/metadata-action@v5 - with: - images: ${{ secrets.DOCKERHUB_USER }}/${{ github.event.repository.name }} - tags: | - type=ref,event=branch - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=sha - type=raw,value=latest,enable={{is_default_branch}} - - name: Build and push uses: docker/build-push-action@v6 with: