fix: trigger/when behaviour
This commit is contained in:
		
							parent
							
								
									65b8660d37
								
							
						
					
					
						commit
						140d84bea1
					
				
					 1 changed files with 14 additions and 12 deletions
				
			
		
							
								
								
									
										26
									
								
								.drone.yml
									
										
									
									
									
								
							
							
						
						
									
										26
									
								
								.drone.yml
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -11,24 +11,18 @@ steps:
 | 
			
		|||
    source: https://git.serguzim.me/emgauwa/controller/archive/master.tar.gz
 | 
			
		||||
    destination: emgauwa-controller.tar.gz
 | 
			
		||||
  when:
 | 
			
		||||
    branch: master
 | 
			
		||||
    ref:
 | 
			
		||||
    - refs/heads/master
 | 
			
		||||
    - refs/tags/v*
 | 
			
		||||
- name: download-controller-testing
 | 
			
		||||
  image: plugins/download
 | 
			
		||||
  settings:
 | 
			
		||||
    source: https://git.serguzim.me/emgauwa/controller/archive/testing.tar.gz
 | 
			
		||||
    destination: emgauwa-controller.tar.gz
 | 
			
		||||
  when:
 | 
			
		||||
    branch: testing
 | 
			
		||||
- name: download-controller-dev
 | 
			
		||||
  image: plugins/download
 | 
			
		||||
  settings:
 | 
			
		||||
    source: https://git.serguzim.me/emgauwa/controller/archive/dev.tar.gz
 | 
			
		||||
    destination: emgauwa-controller.tar.gz
 | 
			
		||||
  when:
 | 
			
		||||
    branch:
 | 
			
		||||
      exclude:
 | 
			
		||||
      - master
 | 
			
		||||
      - testing
 | 
			
		||||
    ref:
 | 
			
		||||
    - refs/heads/testing
 | 
			
		||||
    - refs/tags/testing-*
 | 
			
		||||
 | 
			
		||||
- name: build-controller
 | 
			
		||||
  image: serguzim/emgauwa-builder
 | 
			
		||||
| 
						 | 
				
			
			@ -63,3 +57,11 @@ steps:
 | 
			
		|||
    - build/core.ini
 | 
			
		||||
  when:
 | 
			
		||||
    event: tag
 | 
			
		||||
 | 
			
		||||
trigger:
 | 
			
		||||
  ref:
 | 
			
		||||
    include:
 | 
			
		||||
    - refs/heads/master
 | 
			
		||||
    - refs/heads/testing
 | 
			
		||||
    - refs/pull/**
 | 
			
		||||
    - refs/tags/**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue