Add support for building docker image for arm64 in github actions

This commit is contained in:
Alessandro Uffreduzzi 2022-11-10 09:49:38 +01:00
parent 5b06fefdae
commit b46d5bb988

View File

@ -43,13 +43,14 @@ jobs:
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3
with: with:
context: . context: .
file: docker/Dockerfile file: docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-args: | build-args: |
INCLUDE_MONGODBTOOLS=true INCLUDE_MONGODBTOOLS=true
PREINSTALL_LIBS=true PREINSTALL_LIBS=true