mirror of
https://github.com/seigler/dash-website
synced 2025-07-26 23:06:09 +00:00
clean up / simplify deploy
This commit is contained in:
parent
eae7ec9caf
commit
c4d03b48af
2 changed files with 8 additions and 19 deletions
|
@ -9,7 +9,10 @@ script:
|
|||
- test -d _site/ && test -s _site/index.html
|
||||
|
||||
before_deploy:
|
||||
- ssh-keyscan -H -t rsa,dsa $hostname >> ~/.ssh/known_hosts
|
||||
- openssl aes-256-cbc -k "$dash_org_pem_pass" -in dash.org-test-web.pem.enc -out /tmp/deploy_rsa -d
|
||||
- eval "$(ssh-agent -s)"
|
||||
- chmod 0600 /tmp/deploy_rsa
|
||||
- ssh-add /tmp/deploy_rsa
|
||||
|
||||
addons:
|
||||
ssh_known_hosts:
|
||||
|
@ -18,6 +21,6 @@ addons:
|
|||
deploy:
|
||||
provider: script
|
||||
skip_cleanup: true
|
||||
script: bash script/deploy-rsync.sh
|
||||
script: DEPLOY_USER=$STAGE_DEPLOY_USER DEPLOY_HOST=$STAGE_DEPLOY_HOST DEPLOY_PATH=$STAGE_DEPLOY_PATH bash script/deploy-rsync.sh
|
||||
on:
|
||||
branch: master
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue