[CI] Remove debug and fix deploy command
This commit is contained in:
		
							parent
							
								
									5141867f18
								
							
						
					
					
						commit
						7728c2a005
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
					@ -12,7 +12,6 @@ steps:
 | 
				
			||||||
  image: apihackers/pelican
 | 
					  image: apihackers/pelican
 | 
				
			||||||
  commands:
 | 
					  commands:
 | 
				
			||||||
  - pelican content -o output -s pelicanconf.py
 | 
					  - pelican content -o output -s pelicanconf.py
 | 
				
			||||||
  - ls output
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: deploy staging
 | 
					- name: deploy staging
 | 
				
			||||||
  image: kroniak/ssh-client
 | 
					  image: kroniak/ssh-client
 | 
				
			||||||
| 
						 | 
					@ -27,9 +26,8 @@ steps:
 | 
				
			||||||
  - echo "deploy $DEPLOY_USER@$DEPLOY_HOST"
 | 
					  - echo "deploy $DEPLOY_USER@$DEPLOY_HOST"
 | 
				
			||||||
  - echo "$DEPLOY_KEY" | sed 's/!/\n/g' > deploy_key
 | 
					  - echo "$DEPLOY_KEY" | sed 's/!/\n/g' > deploy_key
 | 
				
			||||||
  - chmod 0600 deploy_key
 | 
					  - chmod 0600 deploy_key
 | 
				
			||||||
  - cat deploy_key
 | 
					 | 
				
			||||||
  - ssh -i deploy_key -o StrictHostKeyChecking=no $DEPLOY_USER@$DEPLOY_HOST rm -Rf /srv/http/blog-lan/output/
 | 
					  - ssh -i deploy_key -o StrictHostKeyChecking=no $DEPLOY_USER@$DEPLOY_HOST rm -Rf /srv/http/blog-lan/output/
 | 
				
			||||||
  - scp -i deploy_key -o StrictHostKeyChecking=no output/* $DEPLOY_USER@$DEPLOY_HOST:/srv/http/blog-lan/output/
 | 
					  - scp -r -i deploy_key -o StrictHostKeyChecking=no output $DEPLOY_USER@$DEPLOY_HOST:/srv/http/blog-lan/
 | 
				
			||||||
  when:
 | 
					  when:
 | 
				
			||||||
    branch:
 | 
					    branch:
 | 
				
			||||||
      exclude:
 | 
					      exclude:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue