switch to exec pipeline for CI
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							
								
								
									
										19
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -1,34 +1,25 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
kind: pipeline
 | 
					kind: pipeline
 | 
				
			||||||
type: docker
 | 
					type: exec
 | 
				
			||||||
name: main
 | 
					name: main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
trigger:
 | 
					trigger:
 | 
				
			||||||
  branch:
 | 
					  branch:
 | 
				
			||||||
    - master
 | 
					    - master
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					platform:
 | 
				
			||||||
 | 
					  os: linux
 | 
				
			||||||
 | 
					  arch: amd64
 | 
				
			||||||
 | 
					
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
  - name: build
 | 
					  - name: build
 | 
				
			||||||
    image: docker:latest
 | 
					 | 
				
			||||||
    volumes:
 | 
					 | 
				
			||||||
      - name: docker-socket
 | 
					 | 
				
			||||||
        path: /var/run/docker.sock
 | 
					 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - docker build -t registry.jfmonty2.com/minebot:latest .
 | 
					      - docker build -t registry.jfmonty2.com/minebot:latest .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - name: deploy
 | 
					  - name: deploy
 | 
				
			||||||
    image: docker:latest
 | 
					 | 
				
			||||||
    volumes: 
 | 
					 | 
				
			||||||
      - name: docker-socket
 | 
					 | 
				
			||||||
        path: /var/run/docker.sock
 | 
					 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      REGISTRY_PWD:
 | 
					      REGISTRY_PWD:
 | 
				
			||||||
        from_secret: registry_pwd
 | 
					        from_secret: registry_pwd
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.jfmonty2.com
 | 
					      - echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.jfmonty2.com
 | 
				
			||||||
      - docker push registry.jfmonty2.com/minebot:latest
 | 
					      - docker push registry.jfmonty2.com/minebot:latest
 | 
				
			||||||
 | 
					 | 
				
			||||||
volumes:
 | 
					 | 
				
			||||||
  - name: docker-socket
 | 
					 | 
				
			||||||
    host:
 | 
					 | 
				
			||||||
      path: /var/run/docker.sock
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user