From 64313a6bd219fb09905e9fc1ada061a66a154d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20G=C3=BCthler?= Date: Wed, 23 Aug 2023 14:51:04 +0200 Subject: [PATCH] Build image for more architectures (#97) This will build images for arm and arm64 alongside amd64. --- .github/workflows/build-docker.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml index 5d384c7..c668194 100644 --- a/.github/workflows/build-docker.yaml +++ b/.github/workflows/build-docker.yaml @@ -10,6 +10,7 @@ on: env: IMAGE: "oskarstark/php-cs-fixer-ga" + PLATFORMS: linux/arm/v7,linux/arm64/v8,linux/amd64 jobs: build: @@ -35,6 +36,10 @@ jobs: id: buildx uses: docker/setup-buildx-action@v2.9.1 + - name: Set up QEMU + id: qemu + uses: docker/setup-qemu-action@v2 + - name: Build and push images uses: docker/build-push-action@v4 with: @@ -47,3 +52,4 @@ jobs: context: . cache-from: type=gha cache-to: type=gha,mode=max + platforms: ${{ env.PLATFORMS }}