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.
 
 

71 lines
1.8 KiB

stages:
- build
- deploy
build-resume:
stage: build
script:
- ./scripts/build-pdf-resume.sh
- ./scripts/build-pdf-resume-for-recruiters.sh
- ./scripts/build-html-resume.sh
only:
- master
tags:
- linux
artifacts:
paths:
- resume.pdf
- resume_for_recruiters.pdf
- ResumeSite.tar.gz
deploy-resume-site:
image: sothr.com/deploy:ubuntu
stage: deploy
variables:
TARGET_DIRECTORY: "/srv/www/sothr.com/resume"
script:
- eval `ssh-agent -s`
- ssh-add <(echo "$SSH_DEPLOY_KEY")
- mkdir -p ~/.ssh
- ssh-keyscan -p $DEPLOY_PORT sothr.com >> ~/.ssh/known_hosts
- mkdir /tmp/deploy
- tar -xvf ResumeSite.tar.gz -C /tmp/deploy
- cp resume.pdf /tmp/deploy
- cp resume_for_recruiters.pdf /tmp/deploy
- 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
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")
- mkdir -p ~/.ssh
- ssh-keyscan github.com >> ~/.ssh/known_hosts
- git clone $GIT_REPO /tmp/deploy
- pushd /tmp/deploy
- git checkout -b gh-pages origin/gh-pages
- git config --global user.email "warrick@sothr.com"
- git config --global user.name "Drew Short"
- 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