Skip to content

Commit

Permalink
Add multi-architecture build support to GitHub Actions (#829)
Browse files Browse the repository at this point in the history
Extend the Docker publishing workflow to build and push images for both
amd64 and arm64 architectures using Docker Buildx.
  • Loading branch information
BachErik authored Jul 25, 2024
1 parent 7192ce6 commit 7f76453
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

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

- name: Extract metadata (tags, labels) for frontend Docker image
id: meta_frontend
uses: docker/metadata-action@dbef88086f6cef02e264edb7dbf63250c17cef6c
Expand All @@ -49,6 +52,7 @@ jobs:
file: frontend/Dockerfile
tags: ${{ steps.meta_frontend.outputs.tags }}
labels: ${{ steps.meta_frontend.outputs.labels }}
platforms: linux/amd64,linux/arm64/v8

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

0 comments on commit 7f76453

Please sign in to comment.