Update .gitlab-ci.yml
This commit is contained in:
		
							parent
							
								
									8b0748b05a
								
							
						
					
					
						commit
						0ac4e0ed3c
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -45,8 +45,12 @@ deploy_staging:
 | 
			
		|||
  variables:
 | 
			
		||||
    SHELL: "/bin/sh"
 | 
			
		||||
  script:
 | 
			
		||||
    - echo "deploy all the things..."
 | 
			
		||||
    - ls -la public/
 | 
			
		||||
    - apk --no-cache --upgrade add openssh-client rsync
 | 
			
		||||
    - mkdir -p ~/.ssh
 | 
			
		||||
    - eval $(ssh-agent -s)
 | 
			
		||||
    - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
 | 
			
		||||
    - ssh-add <(echo "$PRIVATE_KEY")
 | 
			
		||||
    - rsync -e "ssh -l deploy -p 31337" -av public/ 195.54.164.87:s
 | 
			
		||||
  when: on_success
 | 
			
		||||
  environment:
 | 
			
		||||
    name: staging
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue