mirror of
				https://github.com/Telecominfraproject/ols-nos.git
				synced 2025-10-31 01:57:48 +00:00 
			
		
		
		
	[ci] Fix docker sonic slave tag issue. (#13179)
This commit is contained in:
		| @@ -58,7 +58,7 @@ jobs: | |||||||
|       if echo ${{ parameters.pool }} | grep ${{ parameters.arch }};then |       if echo ${{ parameters.pool }} | grep ${{ parameters.arch }};then | ||||||
|         image_latest=$(echo ${image_latest} | sed 's/:/-${{ parameters.arch }}:/') |         image_latest=$(echo ${image_latest} | sed 's/:/-${{ parameters.arch }}:/') | ||||||
|       fi |       fi | ||||||
|       image_branch=$(echo $(echo $image_tag | awk -F: '{print$1}'):$(Build.SourceBranchName)) |       image_branch=$(echo $(echo $image_latest | awk -F: '{print$1}'):$(Build.SourceBranchName)) | ||||||
|       docker rmi $image_tag || true |       docker rmi $image_tag || true | ||||||
|  |  | ||||||
|       if [[ "$(Build.Reason)" =~ [a-zA-Z]*CI ]] && docker pull ${{ parameters.registry_url }}/${image_tag};then |       if [[ "$(Build.Reason)" =~ [a-zA-Z]*CI ]] && docker pull ${{ parameters.registry_url }}/${image_tag};then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Liu Shilong
					Liu Shilong