mirror of https://github.com/samply/bridgehead.git
feature: Set Production Flag based on main Branch
This commit is contained in:
parent
4c9a5fc02f
commit
981ff50c2f
|
@ -68,3 +68,7 @@ fetchVarsFromVault() {
|
||||||
##Setting Network properties
|
##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 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 HOST=$(hostname)
|
||||||
|
export PRODUCTION="false";
|
||||||
|
if [ "$(git branch --show-current)" == "main" ]; then
|
||||||
|
export PRODUCTION="true";
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue