diff --git a/README.md b/README.md index 7541597..0cca23d 100644 --- a/README.md +++ b/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) diff --git a/pipeline.yml b/pipeline.yml index 0bc4a9c..00302da 100644 --- a/pipeline.yml +++ b/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 \ No newline at end of file diff --git a/upload_pipeline.sh b/upload_pipeline.sh old mode 100644 new mode 100755