This commit is contained in:
		
							parent
							
								
									42033294db
								
							
						
					
					
						commit
						825c092185
					
				
							
								
								
									
										11
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								.drone.yml
									
									
									
									
									
								
							@ -52,7 +52,16 @@ steps:
 | 
				
			|||||||
    - echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
 | 
					    - echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # run operations on remote host
 | 
					    # run operations on remote host
 | 
				
			||||||
    - ssh "$${USER}@$${HOST}" "neofetch"
 | 
					    - host="$${USER}@$${HOST}"
 | 
				
			||||||
 | 
					    - ssh $host "ls /var/www/${HOST}/"
 | 
				
			||||||
 | 
					    - ssh $host "ls site" 
 | 
				
			||||||
 | 
					    - backup_dir="backups/${HOST}/${DRONE_STAGE_STARTED}"
 | 
				
			||||||
 | 
					    - ssh $host "echo ${backup_dir}"
 | 
				
			||||||
 | 
					      #- ssh $host "mkdir -p $backup_dir"
 | 
				
			||||||
 | 
					      #- ssh $host "rsync -rP /var/www/${HOST}/* ${DRONE_STAGE_STARTED}"
 | 
				
			||||||
 | 
					      #- ssh $host "ls site" 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      #- ssh 
 | 
					      #- ssh 
 | 
				
			||||||
      #- ssh "$${USER}@$${HOST}" "[[ ! -d ~/gemini/content ]] || rm -r ~/gemini/content"
 | 
					      #- ssh "$${USER}@$${HOST}" "[[ ! -d ~/gemini/content ]] || rm -r ~/gemini/content"
 | 
				
			||||||
      #- rsync -rP content "$${USER}@$${HOST}:gemini"
 | 
					      #- rsync -rP content "$${USER}@$${HOST}:gemini"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user