|
@ -46,9 +46,7 @@ development: |
|
|
- eval `ssh-agent -s` |
|
|
- eval `ssh-agent -s` |
|
|
- ssh-add <(echo "$SSH_DEPLOY_KEY") |
|
|
- ssh-add <(echo "$SSH_DEPLOY_KEY") |
|
|
- pushd ./dist |
|
|
- pushd ./dist |
|
|
- find * -type f -exec sed -i -e 's/{ENVIRONMENT}/'"$ENVIRONMENT"'/g' {} \; |
|
|
|
|
|
- find * -type f -exec sed -i -e 's@{URL_BASE}@'"$DOWNLOAD_URL_BASE"'@g' {} \; |
|
|
- find * -type f -exec sed -i -e 's@{URL_BASE}@'"$DOWNLOAD_URL_BASE"'@g' {} \; |
|
|
- find * -type f -exec sed -i -e 's@{FILE_PATH}@'"{}"'@g' {} \; |
|
|
|
|
|
- popd |
|
|
- popd |
|
|
- rsync -avz --delete-delay -e "ssh -p $DEPLOY_PORT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress dist/* $DEPLOY_USER@$DEPLOY_HOST:$TARGET_DIRECTORY |
|
|
- rsync -avz --delete-delay -e "ssh -p $DEPLOY_PORT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress dist/* $DEPLOY_USER@$DEPLOY_HOST:$TARGET_DIRECTORY |
|
|
only: |
|
|
only: |
|
@ -72,9 +70,7 @@ production: |
|
|
- eval `ssh-agent -s` |
|
|
- eval `ssh-agent -s` |
|
|
- ssh-add <(echo "$SSH_DEPLOY_KEY") |
|
|
- ssh-add <(echo "$SSH_DEPLOY_KEY") |
|
|
- pushd ./dist |
|
|
- pushd ./dist |
|
|
- find * -type f -exec sed -i -e 's/{ENVIRONMENT}/'"$ENVIRONMENT"'/g' {} \; |
|
|
|
|
|
- find * -type f -exec sed -i -e 's@{URL_BASE}@'"$DOWNLOAD_URL_BASE"'@g' {} \; |
|
|
- find * -type f -exec sed -i -e 's@{URL_BASE}@'"$DOWNLOAD_URL_BASE"'@g' {} \; |
|
|
- find * -type f -exec sed -i -e 's@{FILE_PATH}@'"{}"'@g' {} \; |
|
|
|
|
|
- popd |
|
|
- popd |
|
|
- rsync -avz --delete-delay -e "ssh -p $DEPLOY_PORT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress dist/* $DEPLOY_USER@$DEPLOY_HOST:$TARGET_DIRECTORY |
|
|
- rsync -avz --delete-delay -e "ssh -p $DEPLOY_PORT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress dist/* $DEPLOY_USER@$DEPLOY_HOST:$TARGET_DIRECTORY |
|
|
only: |
|
|
only: |
|
|