Production build promotion
This commit is contained in:
		
							parent
							
								
									8c95c1097d
								
							
						
					
					
						commit
						79adec3c8f
					
				
					 1 changed files with 28 additions and 0 deletions
				
			
		
							
								
								
									
										28
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								.drone.yml
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -12,3 +12,31 @@ steps:
 | 
			
		|||
- name: build
 | 
			
		||||
  commands:
 | 
			
		||||
  -  make build
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
kind: pipeline
 | 
			
		||||
type: ssh
 | 
			
		||||
name: image builder
 | 
			
		||||
 | 
			
		||||
server:
 | 
			
		||||
  host: 192.168.1.2
 | 
			
		||||
  user: build
 | 
			
		||||
  password:
 | 
			
		||||
    from_secret: ssh_password
 | 
			
		||||
 | 
			
		||||
steps:
 | 
			
		||||
- name: build
 | 
			
		||||
  environment:
 | 
			
		||||
    DOCKER_USERNAME: creckx
 | 
			
		||||
    DOCKER_PASSWORD:
 | 
			
		||||
      from_secret: docker_password
 | 
			
		||||
  commands:
 | 
			
		||||
  - docker login -u $DOCKER_USERNAME --password $DOCKER_PASSWORD
 | 
			
		||||
  - make push
 | 
			
		||||
 | 
			
		||||
trigger:
 | 
			
		||||
  event:
 | 
			
		||||
  - promote
 | 
			
		||||
  target:
 | 
			
		||||
  - production
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue