From bb31e507ef1ac5aa042b152c727797661d0ae375 Mon Sep 17 00:00:00 2001 From: ian-flores Date: Tue, 13 Jan 2026 09:07:25 -0800 Subject: [PATCH] fix(ci): push to GHCR on main branch before Docker Hub The push-dockerhub job pulls from GHCR, but the image was only pushed to GHCR for PR builds. Added a step to push to GHCR on main branch so push-dockerhub can pull and re-tag for Docker Hub. --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b8ce71b..b748899a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -174,6 +174,11 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Push to GHCR (main branch) + if: github.ref == 'refs/heads/main' + run: | + docker push "${{ steps.image-tag.outputs.full-image }}" + - name: Push to GHCR (for PRs - adhoc testing) if: github.event_name == 'pull_request' run: |