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 dedccd1
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 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,9 +42,10 @@ jobs:
mysql password: password

- name: Build MVM
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/mvm:latest
Expand All @@ -64,8 +68,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 +81,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

0 comments on commit dedccd1

Please sign in to comment.