mirror of
				https://github.com/optim-enterprises-bv/secureblue.git
				synced 2025-11-04 12:28:04 +00:00 
			
		
		
		
	Lowercase env.IMAGE_REGISTRY
Workaround for a bug in push-to-ghcr that makes it impossible to push your image if your GitHub username contains capital letters.
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							bfec36e6f7
						
					
				
				
					commit
					beb8d1bf86
				
			
							
								
								
									
										10
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -32,6 +32,14 @@ jobs:
 | 
				
			|||||||
          tags: ${{ env.IMAGE_TAGS }}
 | 
					          tags: ${{ env.IMAGE_TAGS }}
 | 
				
			||||||
          oci: true
 | 
					          oci: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      # Workaround bug where capital letters in your GitHub user name make it impossible to push to GHCR.
 | 
				
			||||||
 | 
					      # https://github.com/macbre/push-to-ghcr/issues/12
 | 
				
			||||||
 | 
					      - name: Lowercase Registry
 | 
				
			||||||
 | 
					        id: registry_case
 | 
				
			||||||
 | 
					        uses: ASzc/change-string-case-action@v5
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          string: ${{ env.IMAGE_REGISTRY }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # Push the image to GHCR (Image Registry)
 | 
					      # Push the image to GHCR (Image Registry)
 | 
				
			||||||
      - name: Push To GHCR
 | 
					      - name: Push To GHCR
 | 
				
			||||||
        uses: redhat-actions/push-to-registry@v2
 | 
					        uses: redhat-actions/push-to-registry@v2
 | 
				
			||||||
@@ -39,7 +47,7 @@ jobs:
 | 
				
			|||||||
        with:
 | 
					        with:
 | 
				
			||||||
          image: ${{ steps.build_image.outputs.image }}
 | 
					          image: ${{ steps.build_image.outputs.image }}
 | 
				
			||||||
          tags: ${{ steps.build_image.outputs.tags }}
 | 
					          tags: ${{ steps.build_image.outputs.tags }}
 | 
				
			||||||
          registry: ${{ env.IMAGE_REGISTRY }}
 | 
					          registry: ${{ steps.registry_case.outputs.lowercase }}
 | 
				
			||||||
          username: ${{ env.REGISTRY_USER }}
 | 
					          username: ${{ env.REGISTRY_USER }}
 | 
				
			||||||
          password: ${{ env.REGISTRY_PASSWORD }}
 | 
					          password: ${{ env.REGISTRY_PASSWORD }}
 | 
				
			||||||
          extra-args: |
 | 
					          extra-args: |
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user