Update .drone.yml
This commit is contained in:
		
							
								
								
									
										32
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								.drone.yml
									
									
									
									
									
								
							| @@ -1,7 +1,7 @@ | |||||||
| --- | --- | ||||||
| kind: pipeline | kind: pipeline | ||||||
| type: exec | type: docker | ||||||
| name: default | name: seasoned build | ||||||
|  |  | ||||||
| platform: | platform: | ||||||
|   os: linux |   os: linux | ||||||
| @@ -9,16 +9,34 @@ platform: | |||||||
|  |  | ||||||
| steps: | steps: | ||||||
| - name: frontend_install | - name: frontend_install | ||||||
|  |   image: node:13.6.0 | ||||||
|   commands: |   commands: | ||||||
|     - yarn |     - node -v | ||||||
| - name: frontend_build |     - yarn --version | ||||||
|   commands: | - name: deploy | ||||||
|     - yarn build |   image: appleboy/drone-ssh | ||||||
|  |   pull: true | ||||||
|  |   secrets: | ||||||
|  |     - ssh_key | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |       - push | ||||||
|  |     branch: | ||||||
|  |       - master | ||||||
|  |       - drone-test | ||||||
|  |     status: success | ||||||
|  |   settings: | ||||||
|  |     host: 10.0.0.114 | ||||||
|  |     username: root | ||||||
|  |     key: | ||||||
|  |       from_secret: ssh_key | ||||||
|  |     command_timeout: 600s | ||||||
|  |     script: | ||||||
|  |       - /home/kevin/deploy/seasoned.sh | ||||||
|  |  | ||||||
| trigger: | trigger: | ||||||
|   branch: |   branch: | ||||||
|     - master |     - master | ||||||
|     - drone-test |  | ||||||
|   event: |   event: | ||||||
|     include: |     include: | ||||||
|       - pull_request |       - pull_request | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user