From 981ff50c2f355edc046f4a396c86a395c8b94d7f Mon Sep 17 00:00:00 2001 From: Torben Brenner Date: Mon, 23 May 2022 11:21:16 +0200 Subject: [PATCH] feature: Set Production Flag based on main Branch --- lib/functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/functions.sh b/lib/functions.sh index 55781d8..e2db02c 100755 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -68,3 +68,7 @@ fetchVarsFromVault() { ##Setting Network properties export HOSTIP=$(MSYS_NO_PATHCONV=1 docker run --rm --add-host=host.docker.internal:host-gateway ubuntu cat /etc/hosts | grep 'host.docker.internal' | awk '{print $1}'); export HOST=$(hostname) +export PRODUCTION="false"; +if [ "$(git branch --show-current)" == "main" ]; then + export PRODUCTION="true"; +fi