Skip to content

Commit

Permalink
Add multi-platform image builds
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-gardener committed Dec 7, 2023
1 parent 8e9c21c commit 3a75441
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ jobs:
echo ELASTICSEARCH_USERNAME="elastic" >> .env.test.local
echo ELASTICSEARCH_PASSWORD="" >> .env.test.local
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down Expand Up @@ -60,9 +63,10 @@ jobs:
discovery type: 'single-node'

- name: Build doceww
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
load: true
pull: true
tags: dhilsfu/doceww:latest
Expand All @@ -85,8 +89,11 @@ jobs:
- name: Checkout source code
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
Expand All @@ -95,9 +102,10 @@ jobs:
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build & Push Symfony Base
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
pull: true
tags: dhilsfu/doceww:latest,dhilsfu/doceww:${{github.ref_name}}
Expand Down

0 comments on commit 3a75441

Please sign in to comment.