mirror of
				https://github.com/astral-sh/uv.git
				synced 2025-11-03 21:23:54 +00:00 
			
		
		
		
	Fix missing uv version in Docker image tags (#15263)
The change in https://github.com/astral-sh/uv/pull/15245 added a variable to the step scope that's shadowed by the inner loop. Closes https://github.com/astral-sh/uv/issues/15262
This commit is contained in:
		
							parent
							
								
									9a53806419
								
							
						
					
					
						commit
						3cc895a99a
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		
							
								
								
									
										6
									
								
								.github/workflows/build-docker.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/build-docker.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -241,8 +241,8 @@ jobs:
 | 
			
		|||
          # Loop through all base tags and append its docker metadata pattern to the list
 | 
			
		||||
          # Order is on purpose such that the label org.opencontainers.image.version has the first pattern with the full version
 | 
			
		||||
          IFS=','; for TAG in ${BASE_TAGS}; do
 | 
			
		||||
            TAG_PATTERNS="${TAG_PATTERNS}type=pep440,pattern={{ version }},suffix=-${TAG},value=${TAG}\n"
 | 
			
		||||
            TAG_PATTERNS="${TAG_PATTERNS}type=pep440,pattern={{ major }}.{{ minor }},suffix=-${TAG},value=${TAG}\n"
 | 
			
		||||
            TAG_PATTERNS="${TAG_PATTERNS}type=pep440,pattern={{ version }},suffix=-${TAG},value=${VERSION}\n"
 | 
			
		||||
            TAG_PATTERNS="${TAG_PATTERNS}type=pep440,pattern={{ major }}.{{ minor }},suffix=-${TAG},value=${VERSION}\n"
 | 
			
		||||
            TAG_PATTERNS="${TAG_PATTERNS}type=raw,value=${TAG}\n"
 | 
			
		||||
          done
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -256,7 +256,7 @@ jobs:
 | 
			
		|||
            echo EOF
 | 
			
		||||
          } >> $GITHUB_ENV
 | 
			
		||||
        env:
 | 
			
		||||
          TAG: ${{ needs.docker-plan.outputs.tag }}
 | 
			
		||||
          VERSION: ${{ needs.docker-plan.outputs.tag }}
 | 
			
		||||
 | 
			
		||||
      - name: Extract metadata (tags, labels) for Docker
 | 
			
		||||
        id: meta
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue