You've already forked goreleaser
							
							
				mirror of
				https://github.com/goreleaser/goreleaser.git
				synced 2025-10-30 23:58:09 +02:00 
			
		
		
		
	feat: Allows pushing to private registry (#893)
using the goreleaser docker container
This commit is contained in:
		
				
					committed by
					
						 Carlos Alexandro Becker
						Carlos Alexandro Becker
					
				
			
			
				
	
			
			
			
						parent
						
							ab3bab15ce
						
					
				
				
					commit
					2f6cb9d719
				
			| @@ -2,7 +2,7 @@ | ||||
|  | ||||
| if [ -n "$DOCKER_USERNAME" ] && [ -n "$DOCKER_PASSWORD" ]; then | ||||
|     echo "Login to the docker..." | ||||
|     docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD | ||||
|     docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REGISTRY | ||||
| fi | ||||
|  | ||||
| goreleaser $@ | ||||
|   | ||||
| @@ -56,11 +56,15 @@ $ docker run --rm --privileged \ | ||||
|   -e GITHUB_TOKEN \ | ||||
|   -e DOCKER_USERNAME \ | ||||
|   -e DOCKER_PASSWORD \ | ||||
|   -e DOCKER_REGISTRY \ | ||||
|   goreleaser/goreleaser release | ||||
| ``` | ||||
|  | ||||
| Note that the image will almost always have the last stable Go version. | ||||
|  | ||||
| The `DOCKER_REGISTRY` environment variables can be left empty when you are | ||||
| releasing to the public docker registry. | ||||
|  | ||||
| If you need more things, you are encouraged to have your own image. You can | ||||
| always use GoReleaser's [own Dockerfile][dockerfile] as an example though. | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user