Browse Source

Adding pipeline step to upload to site

master
Drew Short 4 years ago
parent
commit
9b666d05fb
  1. 11
      README.md
  2. 33
      pipeline.yml
  3. 0
      upload_pipeline.sh

11
README.md

@ -1,6 +1,11 @@
# Drew's Resume
[![Concourse](https://concourse.nulloctet.com/api/v1/teams/sothr/pipelines/resume/jobs/publish/badge)](https://concourse.nulloctet.com/teams/sothr/pipelines/resume)
# [View Resume](https://warricksothr.github.io/resume)
# [Download Resume](https://warricksothr.github.io/resume/resume.pdf)
# Github Links
## [View Resume](https://warricksothr.github.io/resume)
## [Download Resume](https://warricksothr.github.io/resume/resume.pdf)
Basic resume style based on the work by Michael DeCorte
# Personal Site
## [Site](https://sothr.com)
## [View Resume](https://sothr.com/resume/)
## [Download Resume](https://sothr.com/resume/resume.pdf)

33
pipeline.yml

@ -99,6 +99,39 @@ jobs:
cp ../resume-pdf/*.pdf .
git add .
git commit -m"Auto update of resume page"
- task: publish-site
config:
platform: linux
image_resource:
type: registry-image
source:
repository: ((nexus_docker_read.host))/sothr/deploy
tag: "stable"
username: ((nexus_docker_read.username))
password: ((nexus_docker_read.password))
inputs:
- name: resume-pdf
- name: resume-html
params:
DEPLOY_KEY: ((deploy.key))
DEPLOY_HOST: ((deploy.host))
DEPLOY_PORT: ((deploy.port))
DEPLOY_USER: ((deploy.user))
DEPLOY_TARGET: ((deploy.target))
run:
path: /bin/sh
args:
- -c
- |
eval `ssh-agent -s`
ssh-add <(echo "(())")
mkdir -p ~/.ssh
ssh-keyscan -p ${DEPLOY_PORT} ${DEPLOY_HOST} >> ~/.ssh/known_hosts
mkdir /tmp/deploy
tar -xzvf resume-html/resume_site.tgz -C /tmp/deploy
cp resume-pdf/resume.pdf /tmp/deploy
cp resume-pdf/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}:${DEPLOY_TARGET}
- put: resume-github-gh-pages
params:
repository: updated-resume-github-gh-pages

0
upload_pipeline.sh

Loading…
Cancel
Save