fix(ci): switch to scp for env file
This commit is contained in:
		
							parent
							
								
									2ca3496154
								
							
						
					
					
						commit
						35176c3271
					
				@ -40,7 +40,8 @@ deploy_stage:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
    # deploy application and server configuration
 | 
					    # deploy application and server configuration
 | 
				
			||||||
    - cat ${ENV_FILE} | ssh rockfic@${DEPLOY_SERVER} 'cat > rockfic-staging/.env'
 | 
					    #    - "cat ${ENV_FILE} | ssh rockfic@${DEPLOY_SERVER} 'cat > ~/rockfic-staging/.env'"
 | 
				
			||||||
 | 
					    - "scp ${ENV_FILE} rockfic@${DEPLOY_SERVER}:rockfic-staging/"
 | 
				
			||||||
    - rsync --archive --delete ${CI_PROJECT_DIR}/ rockfic@${DEPLOY_SERVER}:~/rockfic-staging/
 | 
					    - rsync --archive --delete ${CI_PROJECT_DIR}/ rockfic@${DEPLOY_SERVER}:~/rockfic-staging/
 | 
				
			||||||
    #- rsync --archive --delete ${CI_PROJECT_DIR}/cnf/ ${DEPLOY_USER}@${DEPLOY_SERVER}:~/cnf/
 | 
					    #- rsync --archive --delete ${CI_PROJECT_DIR}/cnf/ ${DEPLOY_USER}@${DEPLOY_SERVER}:~/cnf/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user