mirror of
				https://git.yrzr.tk/docker/gitlab-ce-arm64.git
				synced 2025-05-29 05:49:16 +08:00 
			
		
		
		
	add latest-tag.sh
This commit is contained in:
		
							parent
							
								
									d50e88cb11
								
							
						
					
					
						commit
						dcb8a5451d
					
				
							
								
								
									
										7
									
								
								latest-tag.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										7
									
								
								latest-tag.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,7 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
LATEST=$(git tag | sort -rV | head -n 1)
 | 
			
		||||
 | 
			
		||||
if [ "${LATEST}" == "${CI_COMMIT_TAG}" ]; then 
 | 
			
		||||
    docker tag ${DOCKER_NS}/${BASENAME}:${CI_COMMIT_TAG} ${DOCKER_NS}/${BASENAME}:latest;
 | 
			
		||||
fi
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user