From 2e8bfcc7e81960475704dfe29069c563db70ed2f Mon Sep 17 00:00:00 2001 From: Gustavo Valverde Date: Fri, 22 Mar 2024 11:33:32 +0100 Subject: [PATCH] fix(build): `buildx` setup must be after registry login --- .github/workflows/sub-build-docker-image.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/sub-build-docker-image.yml b/.github/workflows/sub-build-docker-image.yml index 54c3622cb36..e477d2bba8a 100644 --- a/.github/workflows/sub-build-docker-image.yml +++ b/.github/workflows/sub-build-docker-image.yml @@ -120,15 +120,6 @@ jobs: type=edge,enable={{is_default_branch}} type=schedule - # Setup Docker Buildx to use Docker Build Cloud - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v3 - with: - version: "lab:latest" - driver: cloud - endpoint: "zfnd/zebra" - - name: Authenticate to Google Cloud id: auth uses: google-github-actions/auth@v2.1.3 @@ -155,6 +146,15 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + # Setup Docker Buildx to use Docker Build Cloud + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v3 + with: + version: "lab:latest" + driver: cloud + endpoint: "zfnd/zebra" + # Build and push image to Google Artifact Registry, and possibly DockerHub - name: Build & push id: docker_build