From 52e2b60591e471791966fb4f81ae54443db3f02f Mon Sep 17 00:00:00 2001 From: Dev Mukherjee Date: Wed, 21 Jun 2023 14:28:27 +1000 Subject: [PATCH] refactor: build command for cross platform images REFS #43 --- Taskfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index 44ea4d5..5e4f45f 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -7,7 +7,7 @@ tasks: desc: builds a publishable docker image cmds: - | - docker build -t anomalyhq/python-lab-server-api:v{{.PROJ_VER}} -f Dockerfile.api . + docker buildx build --platform=linux/amd64,linux/arm64 --push -t ghcr.io/anomaly/ghcr.io/{{.ORG_NAME}}/{{.PROJ_NAME}}:v{{.PROJ_VER}} -t ghcr.io/ghcr.io/{{.ORG_NAME}}/{{.PROJ_NAME}}:latest -f Dockerfile . dev:test: desc: runs tests inside the server container summary: |