|
@ -26,6 +26,7 @@ deploy-resume-site: |
|
|
script: |
|
|
script: |
|
|
- eval `ssh-agent -s` |
|
|
- eval `ssh-agent -s` |
|
|
- ssh-add <(echo "$SSH_DEPLOY_KEY") |
|
|
- ssh-add <(echo "$SSH_DEPLOY_KEY") |
|
|
|
|
|
- ssh-keyscan -p $DEPLOY_PORT sothr.com >> ~/.ssh/known_hosts |
|
|
- mkdir /tmp/deploy |
|
|
- mkdir /tmp/deploy |
|
|
- tar -xvf ResumeSite.tar.gz -C /tmp/deploy |
|
|
- tar -xvf ResumeSite.tar.gz -C /tmp/deploy |
|
|
- cp resume.pdf /tmp/deploy |
|
|
- cp resume.pdf /tmp/deploy |
|
@ -45,6 +46,7 @@ deploy-resume-github: |
|
|
script: |
|
|
script: |
|
|
- eval `ssh-agent -s` |
|
|
- eval `ssh-agent -s` |
|
|
- ssh-add <(echo "$SSH_DEPLOY_KEY") |
|
|
- ssh-add <(echo "$SSH_DEPLOY_KEY") |
|
|
|
|
|
- ssh-keyscan github.com >> ~/.ssh/known_hosts |
|
|
- git clone $GIT_REPO /tmp/deploy |
|
|
- git clone $GIT_REPO /tmp/deploy |
|
|
- pushd /tmp/deploy |
|
|
- pushd /tmp/deploy |
|
|
- git checkout -b gh-pages origin/gh-pages |
|
|
- git checkout -b gh-pages origin/gh-pages |
|
|