CI test #11
This commit is contained in:
		
							
								
								
									
										51
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										51
									
								
								.drone.yml
									
									
									
									
									
								
							| @@ -45,41 +45,46 @@ steps: | ||||
|       key: | ||||
|         from_secret: eigeen_key | ||||
|       port: 22 | ||||
|       envs: | ||||
|         - deploy_dir | ||||
|       script: | ||||
|         - cd /www/wwwroot | ||||
|         - tar zcf backup.tar.gz www.eigeen.com | ||||
|         - echo $DEPLOY_DIR | ||||
|  | ||||
|   - name: upload | ||||
|     image: drillster/drone-rsync | ||||
|     environment: | ||||
|       HOST1: | ||||
|         from_secret: production_server_addr | ||||
|       DEPLOY_DIR: | ||||
|         from_secret: deploy_dir | ||||
|     settings: | ||||
|       hosts: [ "$HOST1" ] | ||||
|       user:  | ||||
|         from_secret: remote_user | ||||
|       key:  | ||||
|         from_secret: eigeen_key | ||||
|       source: ./public | ||||
|       target:  | ||||
|         from_secret: deploy_dir | ||||
|       source: ./public/* | ||||
|       target: $DEPLOY_DIR/blog | ||||
|  | ||||
|   - name: deploy | ||||
|     image: appleboy/drone-ssh | ||||
|     environments: | ||||
|       DEPLOY_DIR: | ||||
|         from_secret: deploy_dir | ||||
|       GLOBIGNORE: .htaccess:.user.ini:public | ||||
|     settings: | ||||
|       host: | ||||
|         from_secret: production_server_addr | ||||
|       username:  | ||||
|         from_secret: remote_user | ||||
|       key: | ||||
|         from_secret: eigeen_key | ||||
|       port: 22 | ||||
|       script: | ||||
|         - echo $DEPLOY_DIR | ||||
|   # - name: deploy | ||||
|   #   image: appleboy/drone-ssh | ||||
|   #   environments: | ||||
|   #     DEPLOY_DIR: | ||||
|   #       from_secret: deploy_dir | ||||
|   #     GLOBIGNORE: .htaccess:.user.ini:public | ||||
|   #   settings: | ||||
|   #     host: | ||||
|   #       from_secret: production_server_addr | ||||
|   #     username:  | ||||
|   #       from_secret: remote_user | ||||
|   #     key: | ||||
|   #       from_secret: eigeen_key | ||||
|   #     port: 22 | ||||
|   #     script: | ||||
|   #       - cd $DEPLOY_DIR | ||||
|   #       - tar zcf backup.tar.gz ./ | ||||
|   #       - mv $DEPLOY_DIR/* | ||||
|   #       - unset GLOBIGNORE | ||||
|   #       - mv $DEPLOY_DIR/public/* $DEPLOY_DIR/ | ||||
|   #       - rm -r $DEPLOY_DIR/public | ||||
|  | ||||
| volumes: | ||||
|   - name: cache | ||||
|   | ||||
		Reference in New Issue
	
	Block a user