From 39fb93f6c41fd52b3aaa4775249d9b8af64f12cc Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Sat, 11 Apr 2026 13:18:17 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=EF=B8=8F=20chore:=20Set=20Up=20Doc?= =?UTF-8?q?ker=20Buildx=20for=20GitNexus=20Image=20GHA=20Cache=20Export=20?= =?UTF-8?q?(#12619)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The first GHCR build on main failed with: ERROR: Cache export is not supported for the docker driver. The default docker driver on ubuntu-latest runners can't export cache to type=gha. docker/setup-buildx-action@v3 without a driver argument defaults to docker-container, which supports both cache-from and cache-to. Gated on the same condition as the build step so it only runs when an image rebuild is actually needed. --- .github/workflows/gitnexus-deploy-do.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/gitnexus-deploy-do.yml b/.github/workflows/gitnexus-deploy-do.yml index 875ff34105..b26c69855f 100644 --- a/.github/workflows/gitnexus-deploy-do.yml +++ b/.github/workflows/gitnexus-deploy-do.yml @@ -111,6 +111,10 @@ jobs: id: tag run: echo "value=v${{ env.GITNEXUS_VERSION }}" >> "$GITHUB_OUTPUT" + - name: Set up Docker Buildx + if: steps.changes.outputs.changed == 'true' || github.event_name == 'workflow_dispatch' + uses: docker/setup-buildx-action@v3 + - name: Log in to GHCR if: steps.changes.outputs.changed == 'true' || github.event_name == 'workflow_dispatch' uses: docker/login-action@v3