Add Drone build pipeline
	
		
			
	
		
	
	
		
	
		
			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:
		
							parent
							
								
									cccf8e5396
								
							
						
					
					
						commit
						e890358e10
					
				
					 1 changed files with 40 additions and 0 deletions
				
			
		
							
								
								
									
										40
									
								
								.drone.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								.drone.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,40 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					kind: pipeline
 | 
				
			||||||
 | 
					type: docker
 | 
				
			||||||
 | 
					name: default
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					steps:
 | 
				
			||||||
 | 
					- name: submodules
 | 
				
			||||||
 | 
					  image: alpine/git
 | 
				
			||||||
 | 
					  commands:
 | 
				
			||||||
 | 
					  - git submodule update --init --recursive
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: build
 | 
				
			||||||
 | 
					  image: alpine/helm
 | 
				
			||||||
 | 
					  volumes:
 | 
				
			||||||
 | 
					  - name: result
 | 
				
			||||||
 | 
					    path: /output
 | 
				
			||||||
 | 
					  commands:
 | 
				
			||||||
 | 
					  - helm lint --set redis.enabled=false
 | 
				
			||||||
 | 
					  - helm package -d chart .
 | 
				
			||||||
 | 
					  - mv chart/glitchtip*.tgz /output/glitchtip.tgz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: upload
 | 
				
			||||||
 | 
					  image: curlimages/curl:latest
 | 
				
			||||||
 | 
					  environment:
 | 
				
			||||||
 | 
					    GIT_HOST: git.kurocon.nl
 | 
				
			||||||
 | 
					    GIT_PACKAGE_OWNER: KuroNET
 | 
				
			||||||
 | 
					    GIT_USER:
 | 
				
			||||||
 | 
					      from_secret: git_username
 | 
				
			||||||
 | 
					    GIT_TOKEN:
 | 
				
			||||||
 | 
					      from_secret: git_password_or_token
 | 
				
			||||||
 | 
					  volumes:
 | 
				
			||||||
 | 
					  - name: result
 | 
				
			||||||
 | 
					    path: /output
 | 
				
			||||||
 | 
					  commands:
 | 
				
			||||||
 | 
					  - curl --user $GIT_USER:$GIT_TOKEN -X POST --upload-file /output/glitchtip.tgz https://$GIT_HOST/api/packages/{$GIT_PACKAGE_OWNER}/helm/api/charts
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					volumes:
 | 
				
			||||||
 | 
					- name: result
 | 
				
			||||||
 | 
					  temp: {}
 | 
				
			||||||
		Reference in a new issue