From 24f5d438d3b18ad51df28d937cf8cc67ed4079ba Mon Sep 17 00:00:00 2001 From: koolwithk Date: Sun, 28 Aug 2022 14:13:54 +0530 Subject: [PATCH] multi-arch-docker-image - arm64 image can be used to run on aws graviton, Raspberry pi, other cloud arm based instance and saves cost --- .github/workflows/docker.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index e83a205a..d86ce015 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -54,6 +54,7 @@ jobs: with: context: . push: true + platforms: linux/amd64,linux/arm64 tags: ${{ steps.base-variables.outputs.image }}:latest target: ${{ matrix.target }} cache-from: type=registry,ref=${{ steps.base-variables.outputs.image }}:latest @@ -65,6 +66,7 @@ jobs: with: context: . push: true + platforms: linux/amd64,linux/arm64 tags: ${{ steps.base-variables.outputs.image }}:${{ steps.tag-variables.outputs.tag }} target: ${{ matrix.target }} cache-from: type=registry,ref=${{ steps.base-variables.outputs.image }}:latest