Browse Source

Adding github pages deployment support

environments/production/deployments/10
Drew Short 6 years ago
parent
commit
00d7b62ed5
  1. 27
      .gitlab-ci.yml

27
.gitlab-ci.yml

@ -36,3 +36,30 @@ deploy-resume-site:
tags: tags:
- 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
Loading…
Cancel
Save