From 716de355647d38eaf62e813544091235a731c333 Mon Sep 17 00:00:00 2001 From: timoschneider Date: Tue, 11 Jun 2024 18:52:00 +0200 Subject: [PATCH] added hostname to env --- .gitignore | 1 + Makefile | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f9baab2..238cac4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /SWA-*/ /.*-env /*-db +/.hostname diff --git a/Makefile b/Makefile index fc8c7b3..f4564ee 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,8 @@ FRONTEND=swa-jodel/frontend:latest BACKEND=swa-jodel/backend:latest DATABASE=swa-jodel/database:latest +include $(ROOT_DIR).hostname + help: @echo "[HELP]" @echo "usage: make " @@ -46,7 +48,7 @@ frontend: gitsync .PHONY = backend backend: gitsync - docker buildx build --tag $(DOCKER_REGISTRY)$(BACKEND) --load $(ROOT_DIR)SWA-backend + docker buildx build --build-arg="KC_HOSTNAME=$(KC_HOSTNAME)" --tag $(DOCKER_REGISTRY)$(BACKEND) --load $(ROOT_DIR)SWA-backend .PHONY = database database: gitsync