diff --git a/.github/workflows/sub-build-docker-image.yml b/.github/workflows/sub-build-docker-image.yml index 2333a9243bb..92dd106b46c 100644 --- a/.github/workflows/sub-build-docker-image.yml +++ b/.github/workflows/sub-build-docker-image.yml @@ -118,11 +118,6 @@ jobs: type=edge,enable={{is_default_branch}} type=schedule - # Setup Docker Buildx to allow use of docker cache layers from GH - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v3 - - name: Authenticate to Google Cloud id: auth uses: google-github-actions/auth@v2.1.2 @@ -152,6 +147,18 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + # Setup Docker Buildx to allow use of docker cache layers from GH + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v3 + with: + version: "lab:latest" + driver: cloud + endpoint: "zfnd/zebra" + driver-opts: | + network=host + image=moby/buildkit:v0.13.0 + # Build and push image to Google Artifact Registry, and possibly DockerHub - name: Build & push id: docker_build