The public sources for my resume. These sources are auto compiled and published upon changes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.7 KiB

  1. stages:
  2. - build
  3. - deploy
  4. build-resume:
  5. stage: build
  6. script:
  7. - ./scripts/build-pdf-resume.sh
  8. - ./scripts/build-pdf-resume-for-recruiters.sh
  9. - ./scripts/build-html-resume.sh
  10. only:
  11. - master
  12. tags:
  13. - linux
  14. artifacts:
  15. paths:
  16. - resume.pdf
  17. - resume_for_recruiters.pdf
  18. - ResumeSite.tar.gz
  19. deploy-resume-site:
  20. image: sothr.com/deploy:ubuntu
  21. stage: deploy
  22. variables:
  23. TARGET_DIRECTORY: "/srv/www/sothr.com/resume"
  24. script:
  25. - eval `ssh-agent -s`
  26. - ssh-add <(echo "$SSH_DEPLOY_KEY")
  27. - ssh-keyscan -p $DEPLOY_PORT sothr.com >> ~/.ssh/known_hosts
  28. - mkdir /tmp/deploy
  29. - tar -xvf ResumeSite.tar.gz -C /tmp/deploy
  30. - cp resume.pdf /tmp/deploy
  31. - cp resume_for_recruiters.pdf /tmp/deploy
  32. - rsync -avz --delete-delay -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $DEPLOY_PORT" --progress /tmp/deploy/* $DEPLOY_USER@$DEPLOY_HOST:$TARGET_DIRECTORY
  33. only:
  34. - master
  35. tags:
  36. - docker
  37. environment: production
  38. deploy-resume-github:
  39. image: sothr.com/deploy:ubuntu
  40. stage: deploy
  41. variables:
  42. GIT_REPO: git@github.com:warricksothr/resume.git
  43. script:
  44. - eval `ssh-agent -s`
  45. - ssh-add <(echo "$SSH_DEPLOY_KEY")
  46. - ssh-keyscan github.com >> ~/.ssh/known_hosts
  47. - git clone $GIT_REPO /tmp/deploy
  48. - pushd /tmp/deploy
  49. - git checkout -b gh-pages origin/gh-pages
  50. - rm -rf *
  51. - popd
  52. - tar -xvf ResumeSite.tar.gz -C /tmp/deploy
  53. - cp resume.pdf /tmp/deploy
  54. - cp resume_for_recruiters.pdf /tmp/deploy
  55. - pushd /tmp/deploy
  56. - git add .
  57. - git commit -am"$CI_COMMIT_MESSAGE"
  58. - git push
  59. - popd
  60. only:
  61. - master
  62. tags:
  63. - docker
  64. environment: production