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 2fa5aaf commit 4d3c765
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ jobs:
touch .env.test.local
echo DATABASE_URL="mysql://mvm:[email protected]:3306/mvm?serverVersion=mariadb-10.11.0" >> .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 All @@ -39,7 +42,7 @@ jobs:
mysql password: password

- name: Build MVM
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
load: true
Expand All @@ -64,8 +67,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 @@ -74,9 +80,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/mvm:latest,dhilsfu/mvm:${{github.ref_name}}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ services:

mail:
container_name: mvm_mail
image: mailhog/mailhog:v1.0.1
image: jcalonso/mailhog:v1.0.1
ports:
- "8025:8025"

0 comments on commit 4d3c765

Please sign in to comment.