mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	added version-tag to docker image
This commit is contained in:
		
							parent
							
								
									cbc3ab49b6
								
							
						
					
					
						commit
						2a179e76a5
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -24,7 +24,8 @@ function runDockerBuild()
 | 
			
		|||
	STARTTS=$(date +%s);
 | 
			
		||||
    ARGS=$@;
 | 
			
		||||
 | 
			
		||||
    BUILD_CMD="docker build -f docker/Dockerfile --force-rm --no-cache ${ARGS} -t meshcentral .";
 | 
			
		||||
    APP_VERSION=$(grep -o '"version":\s*"[^"]*"' ./package.json | cut -f4- -d\" | tr -d '"')
 | 
			
		||||
    BUILD_CMD="docker build -f docker/Dockerfile --force-rm --no-cache ${ARGS} -t meshcentral:latest -t meshcentral:${APP_VERSION} .";
 | 
			
		||||
    appendOutput "Current build: ${BUILD_CMD}";
 | 
			
		||||
 | 
			
		||||
    if [ -z "${LOG_FILE}" ]; then ${BUILD_CMD}; else ${BUILD_CMD} &>> "${LOG_FILE}"; fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue