Use focus tag depending on ENVIRONMENT

This commit is contained in:
Martin Lablans
2024-01-08 15:49:46 +01:00
parent 00cae67fa1
commit 29fb0e7099
4 changed files with 16 additions and 3 deletions

View File

@ -69,6 +69,19 @@ loadVars() {
# Set some project-independent default values
: ${ENVIRONMENT:=production}
case "$ENVIRONMENT" in
"production")
FOCUS_TAG=main
;;
"test")
FOCUS_TAG=develop
;;
*)
report_error 7 "Environment \"$ENVIRONMENT\" is unknown. Assuming production. FIX THIS!"
FOCUS_TAG=main
;;
esac
}
case "$ACTION" in