From 41b5245fb681b3c4f4a89d34ad0c6b3c7affe924 Mon Sep 17 00:00:00 2001
From: Dan Meruelo <Dan.Meruelo@BuzzFeed.com>
Date: Wed, 20 Oct 2021 09:44:05 -0400
Subject: [PATCH] Build docker images for amd64 and arm64 (#65)

---
 Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index e84fb46..8b5df95 100644
--- a/Makefile
+++ b/Makefile
@@ -144,8 +144,11 @@ gcloud-auth:
 image:
 	DOCKER_BUILDKIT=1 docker build -t $(DOCKER_TAG_DOCKERHUB) .
 
-imagepush: image
-	docker push $(DOCKER_TAG_DOCKERHUB)
+imagepush:
+	docker buildx create --name httpbin
+	docker buildx use httpbin
+	docker buildx build --push --platform linux/amd64,linux/arm64 -t $(DOCKER_TAG_DOCKERHUB) .
+	docker buildx rm httpbin
 
 
 # =============================================================================
-- 
GitLab