Added ci to build dev and tags
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			ref #17
This commit is contained in:
		
							
								
								
									
										84
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										84
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,84 @@ | ||||
| --- | ||||
| kind: secret | ||||
| name: docker_username | ||||
| get: | ||||
|   path: odit-registry-builder | ||||
|   name: username | ||||
|  | ||||
| --- | ||||
| kind: secret | ||||
| name: docker_password | ||||
| get: | ||||
|   path: odit-registry-builder | ||||
|   name: password | ||||
|  | ||||
| --- | ||||
| kind: secret | ||||
| name: git_ssh | ||||
| get: | ||||
|   path: odit-git-bot | ||||
|   name: sshkey | ||||
|  | ||||
| --- | ||||
| kind: pipeline | ||||
| type: kubernetes | ||||
| name: build:dev | ||||
|  | ||||
| steps: | ||||
|   # - name: run full license export | ||||
|   #   depends_on: ["clone"] | ||||
|   #   image: node:alpine | ||||
|   #   commands: | ||||
|   #     - yarn | ||||
|   #     - yarn licenses:export | ||||
|   # - name: push new licenses file to repo | ||||
|   #   depends_on: ["run full license export"] | ||||
|   #   image: appleboy/drone-git-push | ||||
|   #   settings: | ||||
|   #     branch: dev | ||||
|   #     commit: true | ||||
|   #     commit_message: new license file version [CI SKIP] | ||||
|   #     author_email: bot@odit.services | ||||
|   #     remote: git@git.odit.services:lfk/selfservice.git | ||||
|   #     ssh_key: | ||||
|   #       from_secret: git_ssh | ||||
|   - name: build dev | ||||
|     image: plugins/docker | ||||
|     depends_on: [clone] | ||||
|     settings: | ||||
|       username: | ||||
|         from_secret: docker_username | ||||
|       password: | ||||
|         from_secret: docker_password | ||||
|       repo: registry.odit.services/lfk/selfservice | ||||
|       tags: | ||||
|         - dev | ||||
|       registry: registry.odit.services | ||||
|       mtu: 1000 | ||||
| trigger: | ||||
|   branch: | ||||
|     - dev | ||||
|   event: | ||||
|     - push | ||||
|  | ||||
| --- | ||||
| kind: pipeline | ||||
| type: kubernetes | ||||
| name: build:tags | ||||
| steps: | ||||
|   - name: build $DRONE_TAG | ||||
|     image: plugins/docker | ||||
|     depends_on: [clone] | ||||
|     settings: | ||||
|       username: | ||||
|         from_secret: docker_username | ||||
|       password: | ||||
|         from_secret: docker_password | ||||
|       repo: registry.odit.services/lfk/selfservice | ||||
|       tags: | ||||
|         - '${DRONE_TAG}' | ||||
|       registry: registry.odit.services | ||||
|       mtu: 1000 | ||||
| trigger: | ||||
|   event: | ||||
|   - tag | ||||
		Reference in New Issue
	
	Block a user