From 825dcad1128c571252c7e62c9cc45ca86763b1ce Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 02:00:56 +0000 Subject: [PATCH] feat: Enable multi-architecture Docker image builds (amd64, arm64) Updates the GitHub Actions workflow (`.github/workflows/docker-publish.yml`) to build and push Docker images for both `linux/amd64` and `linux/arm64` architectures. The `platforms` attribute has been added to the `docker/build-push-action` step for both the backend and frontend jobs. This ensures that you on different CPU architectures can use the published images from ghcr.io. --- .github/workflows/docker-publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index b9a8605..9b7ecc6 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -34,6 +34,7 @@ jobs: file: ./surfsense_backend/Dockerfile push: true tags: ghcr.io/${{ github.repository_owner }}/surfsense_backend:${{ github.sha }} + platforms: linux/amd64,linux/arm64 labels: | org.opencontainers.image.source=${{ github.repositoryUrl }} org.opencontainers.image.created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }} @@ -68,6 +69,7 @@ jobs: file: ./surfsense_web/Dockerfile push: true tags: ghcr.io/${{ github.repository_owner }}/surfsense_web:${{ github.sha }} + platforms: linux/amd64,linux/arm64 labels: | org.opencontainers.image.source=${{ github.repositoryUrl }} org.opencontainers.image.created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}