From 255a7b28b905e9977a41f50ebce45e0c74b247f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Doma=C5=84ski?= Date: Sat, 2 Mar 2024 15:36:44 +0100 Subject: [PATCH] [build] x86 images --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..79cabfa --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +VERSION=0.`git rev-list --count HEAD` +.PHONY: black + +DOCKER_BUILD=docker build + +ifeq ($(shell uname -m), arm64) +DOCKER_BUILD=docker buildx build --platform linux/amd64 +endif + +build: + $(DOCKER_BUILD) -t registry.domandoman.xyz/fooder/app -f Dockerfile . + +push: + docker push registry.domandoman.xyz/fooder/app