Skip to content

Commit 7f76453

Browse files
authored
Add multi-architecture build support to GitHub Actions (#829)
Extend the Docker publishing workflow to build and push images for both amd64 and arm64 architectures using Docker Buildx.
1 parent 7192ce6 commit 7f76453

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/publish_docker_image.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
username: ${{ github.actor }}
3030
password: ${{ secrets.GITHUB_TOKEN }}
3131

32+
- name: Set up Docker Buildx
33+
uses: docker/setup-buildx-action@v1
34+
3235
- name: Extract metadata (tags, labels) for frontend Docker image
3336
id: meta_frontend
3437
uses: docker/metadata-action@dbef88086f6cef02e264edb7dbf63250c17cef6c
@@ -49,6 +52,7 @@ jobs:
4952
file: frontend/Dockerfile
5053
tags: ${{ steps.meta_frontend.outputs.tags }}
5154
labels: ${{ steps.meta_frontend.outputs.labels }}
55+
platforms: linux/amd64,linux/arm64/v8
5256

5357
- name: Build and push backend Docker image
5458
uses: docker/build-push-action@1ca370b3a9802c92e886402e0dd88098a2533b12
@@ -58,3 +62,4 @@ jobs:
5862
file: backend/Dockerfile
5963
tags: ${{ steps.meta_backend.outputs.tags }}
6064
labels: ${{ steps.meta_backend.outputs.labels }}
65+
platforms: linux/amd64,linux/arm64/v8

0 commit comments

Comments
 (0)