drone pipeline
This commit is contained in:
		
							
								
								
									
										33
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
kind: pipeline
 | 
			
		||||
type: kubernetes
 | 
			
		||||
name: default
 | 
			
		||||
 | 
			
		||||
trigger:
 | 
			
		||||
  branch:
 | 
			
		||||
    - master
 | 
			
		||||
 | 
			
		||||
steps:
 | 
			
		||||
- name: Go Tests
 | 
			
		||||
  image: golang
 | 
			
		||||
  volumes:
 | 
			
		||||
  - name: deps
 | 
			
		||||
    path: /go
 | 
			
		||||
  commands:
 | 
			
		||||
  - cd src
 | 
			
		||||
  - go test
 | 
			
		||||
 | 
			
		||||
- name: build
 | 
			
		||||
  image: golang
 | 
			
		||||
  volumes:
 | 
			
		||||
  - name: deps
 | 
			
		||||
    path: /go
 | 
			
		||||
  - name: bin
 | 
			
		||||
    path: /binaries
 | 
			
		||||
  commands:
 | 
			
		||||
  - cd src
 | 
			
		||||
  - go build -o /binaries/app
 | 
			
		||||
volumes:
 | 
			
		||||
- name: deps
 | 
			
		||||
  temp: {}
 | 
			
		||||
- name: bin
 | 
			
		||||
  temp: {}
 | 
			
		||||
		Reference in New Issue
	
	Block a user