|
|
@ -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 |