optimize setup
Some checks failed
deploy to hetzner / deploy (push) Failing after 11m28s

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-08-23 00:09:16 +02:00
parent feb96d32b6
commit f86b2792ef
6 changed files with 22 additions and 23 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
REMOTE_HOST = mars3142@172.16.20.1
PROJECT_NAME = firmware-hq
SERVICE_NAME = eureka-service
RASPI_PATH = /mnt/data/${PROJECT_NAME}
install: build deploy import
build:
docker buildx build --platform linux/arm64 --no-cache -t ${PROJECT_NAME}/${SERVICE_NAME}:latest -o type=docker,dest=./${SERVICE_NAME}-arm64.tar .
deploy:
scp ./${SERVICE_NAME}-arm64.tar ${REMOTE_HOST}:${RASPI_PATH}/
import:
ssh ${REMOTE_HOST} "sudo docker load -i ${RASPI_PATH}/${SERVICE_NAME}-arm64.tar && rm ${RASPI_PATH}/${SERVICE_NAME}-arm64.tar"
.PHONY: build deploy import