From a00629af7adcc8d1cf91821293c1a95d18f29cb3 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 20 Jun 2025 13:13:46 +0000 Subject: [PATCH] fix: Ensure multi-platform builds with Docker Buildx This commit updates the GitHub Actions workflows to correctly set up Docker Buildx for multi-platform (amd64, arm64) image builds. Previously, the workflows were missing the `docker/setup-buildx-action` step, which led to errors when attempting multi-platform builds as the default Docker driver does not support this. The following changes were made: 1. **Added `docker/setup-buildx-action@v3`:** - This step is now included in both the CI (`.github/workflows/ci.yaml`) and Release (`.github/workflows/release.yml`) workflows before the QEMU setup and build/push actions. 2. **Dockerfile (`exporter/Dockerfile`):** - Remains as per the previous commit, using `TARGETARCH` to correctly copy architecture-specific libraries. This part was already correct for multi-arch builds. 3. **Helm Chart:** - No changes were required for the Helm chart. This ensures that the CI/CD pipeline can successfully build and push Docker images for both `linux/amd64` and `linux/arm64` architectures. --- .github/workflows/ci.yaml | 3 +++ .github/workflows/release.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5282efb..38251e6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,6 +31,9 @@ jobs: - name: Check out code uses: actions/checkout@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Set up QEMU uses: docker/setup-qemu-action@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f80aac..f5000ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,6 +36,9 @@ jobs: - name: Check out code uses: actions/checkout@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Set up QEMU uses: docker/setup-qemu-action@v2