mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 04:52:56 +00:00 
			
		
		
		
	Refactor TFW relase name generation to separate function
This commit is contained in:
		@@ -27,9 +27,14 @@ run_frontend()
 | 
			
		||||
build_baseimage()
 | 
			
		||||
{
 | 
			
		||||
    cd $BASEIMAGE_PATH
 | 
			
		||||
    docker build -t "${BASEIMAGE_NAME}:$(baseimage_releasename)" -t "${BASEIMAGE_NAME}:latest" .
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
baseimage_releasename()
 | 
			
		||||
{
 | 
			
		||||
    VERSION="$(cat VERSION | head -n 1)"
 | 
			
		||||
    DATE="$(date +%Y%m%d)"
 | 
			
		||||
    docker build -t "${BASEIMAGE_NAME}:${VERSION}-${DATE}" -t "${BASEIMAGE_NAME}:latest" .
 | 
			
		||||
    printf "${VERSION}-${DATE}"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
build_backend()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user