Skip to content

Commit

Permalink
Build image for more architectures (#97)
Browse files Browse the repository at this point in the history
This will build images for arm and arm64 alongside amd64.
  • Loading branch information
relthyg authored Aug 23, 2023
1 parent cded653 commit 64313a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

env:
IMAGE: "oskarstark/php-cs-fixer-ga"
PLATFORMS: linux/arm/v7,linux/arm64/v8,linux/amd64

jobs:
build:
Expand All @@ -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:
Expand All @@ -47,3 +52,4 @@ jobs:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: ${{ env.PLATFORMS }}

0 comments on commit 64313a6

Please sign in to comment.