add drone config
	
		
			
	
		
	
	
		
	
		
			Some checks reported errors
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build encountered an error
				
			
		
		
	
	
				
					
				
			
		
			Some checks reported errors
		
		
	
	continuous-integration/drone/push Build encountered an error
				
			This commit is contained in:
		
							parent
							
								
									6b1f3fc256
								
							
						
					
					
						commit
						350a7f99a2
					
				
							
								
								
									
										26
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,26 @@
 | 
			
		||||
---
 | 
			
		||||
kind: pipeline
 | 
			
		||||
name: test and build image
 | 
			
		||||
steps:
 | 
			
		||||
  - name: test code
 | 
			
		||||
    image: golang:1-alpine
 | 
			
		||||
    command:
 | 
			
		||||
      - apk add --no-cache build-base make
 | 
			
		||||
      - make test
 | 
			
		||||
    when:
 | 
			
		||||
      event:
 | 
			
		||||
        include:
 | 
			
		||||
          - push
 | 
			
		||||
  - name: test and build image
 | 
			
		||||
    image: plugins/docker
 | 
			
		||||
    settins:
 | 
			
		||||
      purge: true
 | 
			
		||||
      registry: docker.mtfos.xyz
 | 
			
		||||
      repo: docker.mtfos.xyz/mtfos/tcp-proxy
 | 
			
		||||
      autotag: true
 | 
			
		||||
      tags:
 | 
			
		||||
        - "${DRONE_COMMIT}"
 | 
			
		||||
        - "${DRONE_TAG}"
 | 
			
		||||
    when:
 | 
			
		||||
      ref:
 | 
			
		||||
        - refs/tags/**
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user