feat: Build multi-architecture Docker images (#27)
* feat: Build multi-architecture Docker images Updates the GitHub Actions workflow to build Docker images for both amd64 and arm64 architectures. This is achieved by: - Adding a QEMU setup step (`docker/setup-qemu-action@v3`). - Adding a Docker Buildx setup step. - Specifying `linux/amd64,linux/arm64` in the `platforms` input of the `docker/build-push-action@v6` step. --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This commit is contained in:
@@ -43,6 +43,12 @@ jobs:
|
|||||||
# set latest tag for default branch
|
# set latest tag for default branch
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Build and push the Docker image
|
- name: Build and push the Docker image
|
||||||
id: push
|
id: push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
@@ -52,3 +58,4 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|||||||
Reference in New Issue
Block a user