diff --git a/.github/workflows/docker-build-publish.yml b/.github/workflows/docker-build-publish.yml index 78ed6b57..95710a22 100644 --- a/.github/workflows/docker-build-publish.yml +++ b/.github/workflows/docker-build-publish.yml @@ -20,8 +20,11 @@ jobs: with: fetch-depth: 0 - - name: Log in to GitHub Container Registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Set up QEMU for multi-arch builds uses: docker/setup-qemu-action@v3 @@ -119,7 +122,7 @@ jobs: docker buildx build \ --platform linux/amd64,linux/arm64 \ --build-arg APP_VERSION=${{ env.image_tag }} \ - --tag ghcr.io/${{ github.actor }}/booklore-app:${{ env.image_tag }} \ + --tag booklore/booklore-app:${{ env.image_tag }} \ --push . - name: Push Latest Tag (Only for Master) @@ -128,7 +131,7 @@ jobs: docker buildx build \ --platform linux/amd64,linux/arm64 \ --build-arg APP_VERSION=${{ env.new_tag }} \ - --tag ghcr.io/${{ github.actor }}/booklore-app:latest \ + --tag booklore/booklore-app:latest \ --push . - name: Update Release Draft (Only for Master)