From c2fdb090e10a390b321e12800c7697ceb4c25fa5 Mon Sep 17 00:00:00 2001 From: allburov Date: Sat, 27 Jan 2024 13:06:09 +0700 Subject: [PATCH] [core] build via ssh --- Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index da2d277c..e7c7c28f 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,6 @@ build: docker build . -t devlikeapro/whatsapp-http-api -build-ssh: - eval $(ssh-agent) && \ - ssh-add ~/.ssh/id_rsa && \ - docker buildx build --ssh default=${SSH_AUTH_SOCK} . -t devlikeapro/whatsapp-http-api - - build-chrome: docker build . -t devlikeapro/whatsapp-http-api:chrome --build-arg USE_BROWSER=chrome @@ -18,6 +12,13 @@ build-all: build build-chrome build-noweb build-plus: docker build . -t devlikeapro/whatsapp-http-api-plus +build-ssh: + # check IMAGE provided + @[ "${IMAGE}" ] || ( echo "Add APP: make build-ssh image=devlikeapro/whatsapp-http-api"; exit 1 ); + eval $(ssh-agent) && \ + ssh-add ~/.ssh/id_rsa && \ + docker buildx build --ssh default=${SSH_AUTH_SOCK} . -t ${IMAGE} --build-arg USE_BROWSER=none + stop: docker stop whatsapp-http-api