only push builds on master
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				ci/woodpecker/push/woodpecker Pipeline was successful
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	ci/woodpecker/push/woodpecker Pipeline was successful
				
			This commit is contained in:
		| @@ -1,4 +1,8 @@ | ||||
| pipeline: | ||||
|   test: | ||||
|     image: golang:1.17 | ||||
|     commands: | ||||
|       - go test ./... | ||||
|   build: | ||||
|     image: docker | ||||
|     environment: | ||||
| @@ -9,9 +13,13 @@ | ||||
|       - docker build -t registry.yetaga.in/library:latest . | ||||
|       - docker push registry.yetaga.in/library:latest | ||||
|     secrets: [docker_username, docker_password] | ||||
|     when: | ||||
|       branch: "master" | ||||
|  | ||||
| services: | ||||
|   docker: | ||||
|     image: docker:18.09-dind | ||||
|     command: ["--storage-driver=vfs"] | ||||
|     privileged: true | ||||
|     when: | ||||
|       branch: master | ||||
|   | ||||
		Reference in New Issue
	
	Block a user