From 93baa19ba12c8295b6ee76f866a4ae828e0c8483 Mon Sep 17 00:00:00 2001 From: Kalissaac Date: Tue, 31 May 2022 10:14:42 -0700 Subject: [PATCH] Add arm64 Docker image Signed-off-by: Kian Sutarwala --- .github/workflows/publish.yaml | 4 ++++ Dockerfile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e356c40..86557ef 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -32,10 +32,14 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 + - name: Build and push Docker image uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc with: context: . + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/Dockerfile b/Dockerfile index e31506c..eb7e7a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-buster as builder +FROM --platform=$BUILDPLATFORM node:16-buster as builder WORKDIR /src