Skip to content

Commit 64313a6

Browse files
authored
Build image for more architectures (#97)
This will build images for arm and arm64 alongside amd64.
1 parent cded653 commit 64313a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build-docker.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
env:
1212
IMAGE: "oskarstark/php-cs-fixer-ga"
13+
PLATFORMS: linux/arm/v7,linux/arm64/v8,linux/amd64
1314

1415
jobs:
1516
build:
@@ -35,6 +36,10 @@ jobs:
3536
id: buildx
3637
uses: docker/[email protected]
3738

39+
- name: Set up QEMU
40+
id: qemu
41+
uses: docker/setup-qemu-action@v2
42+
3843
- name: Build and push images
3944
uses: docker/build-push-action@v4
4045
with:
@@ -47,3 +52,4 @@ jobs:
4752
context: .
4853
cache-from: type=gha
4954
cache-to: type=gha,mode=max
55+
platforms: ${{ env.PLATFORMS }}

0 commit comments

Comments
 (0)