From 4818234a6ee50beaff5495e6734724093ce0ebbf Mon Sep 17 00:00:00 2001 From: Jonathan Dance Date: Thu, 17 Oct 2024 09:38:15 -0500 Subject: [PATCH] de-matrix the docker platform build Docker doesn't like it when you push from separate workers --- .github/workflows/docker.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index c0ca9536..67d8f7e2 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -19,7 +19,6 @@ jobs: strategy: matrix: postgres: ["15", "16", "17"] - platform: ["linux/amd64", "linux/arm64"] steps: - name: Login to Docker Hub @@ -39,14 +38,14 @@ jobs: - name: Set up Docker buildx uses: docker/setup-buildx-action@v3 with: - platforms: ${{ matrix.platform }} + platforms: linux/amd64,linux/arm64 - name: docker bake uses: docker/bake-action@v5 with: targets: pg_duckdb_${{ matrix.postgres }} push: true set: | - *.platform=${{ matrix.platform }} + *.platform=linux/amd64,linux/arm64 *.cache-to=type=gha,mode=max *.cache-from=type=gha postgres.tags=pgduckdb/pgduckdb:${{ matrix.postgres }}-${{ github.sha }}