mirror of
				https://github.com/samply/bridgehead.git
				synced 2025-11-04 08:20:17 +01:00 
			
		
		
		
	Use focus tag depending on ENVIRONMENT
This commit is contained in:
		
							
								
								
									
										13
									
								
								bridgehead
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								bridgehead
									
									
									
									
									
								
							@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user