|
@ -37,29 +37,29 @@ deploy-resume-site: |
|
|
- docker |
|
|
- docker |
|
|
environment: production |
|
|
environment: production |
|
|
|
|
|
|
|
|
deploy-resume-github: |
|
|
|
|
|
image: sothr.com/deploy:ubuntu |
|
|
|
|
|
stage: deploy |
|
|
|
|
|
variables: |
|
|
|
|
|
GIT_REPO: git@github.com:warricksothr/resume.git |
|
|
|
|
|
script: |
|
|
|
|
|
- eval `ssh-agent -s` |
|
|
|
|
|
- ssh-add <(echo "$SSH_DEPLOY_KEY") |
|
|
|
|
|
- git pull $GIT_REPO /tmp/deploy |
|
|
|
|
|
- pushd /tmp/deploy |
|
|
|
|
|
- git checkout -b gh-pages origin/gh-pages |
|
|
|
|
|
- rm -rf * |
|
|
|
|
|
- popd |
|
|
|
|
|
- tar -xvf ResumeSite.tar.gz -C /tmp/deploy |
|
|
|
|
|
- cp resume.pdf /tmp/deploy |
|
|
|
|
|
- cp resume_for_recruiters.pdf /tmp/deploy |
|
|
|
|
|
- pushd /tmp/deploy |
|
|
|
|
|
- git add . |
|
|
|
|
|
- git commit -am"$CI_COMMIT_MESSAGE" |
|
|
|
|
|
- git push |
|
|
|
|
|
- popd |
|
|
|
|
|
only: |
|
|
|
|
|
- master |
|
|
|
|
|
tags: |
|
|
|
|
|
- docker |
|
|
|
|
|
environment: production |
|
|
|
|
|
|
|
|
deploy-resume-github: |
|
|
|
|
|
image: sothr.com/deploy:ubuntu |
|
|
|
|
|
stage: deploy |
|
|
|
|
|
variables: |
|
|
|
|
|
GIT_REPO: git@github.com:warricksothr/resume.git |
|
|
|
|
|
script: |
|
|
|
|
|
- eval `ssh-agent -s` |
|
|
|
|
|
- ssh-add <(echo "$SSH_DEPLOY_KEY") |
|
|
|
|
|
- git pull $GIT_REPO /tmp/deploy |
|
|
|
|
|
- pushd /tmp/deploy |
|
|
|
|
|
- git checkout -b gh-pages origin/gh-pages |
|
|
|
|
|
- rm -rf * |
|
|
|
|
|
- popd |
|
|
|
|
|
- tar -xvf ResumeSite.tar.gz -C /tmp/deploy |
|
|
|
|
|
- cp resume.pdf /tmp/deploy |
|
|
|
|
|
- cp resume_for_recruiters.pdf /tmp/deploy |
|
|
|
|
|
- pushd /tmp/deploy |
|
|
|
|
|
- git add . |
|
|
|
|
|
- git commit -am"$CI_COMMIT_MESSAGE" |
|
|
|
|
|
- git push |
|
|
|
|
|
- popd |
|
|
|
|
|
only: |
|
|
|
|
|
- master |
|
|
|
|
|
tags: |
|
|
|
|
|
- docker |
|
|
|
|
|
environment: production |