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.
60 lines
1.7 KiB
60 lines
1.7 KiB
---
|
|
resources:
|
|
- name: resume-git
|
|
type: git
|
|
icon: git
|
|
source:
|
|
uri: ssh://git@git.nulloctet.com:8437/warricksothr/resume.git
|
|
private_key: |
|
|
((pull_key))
|
|
|
|
jobs:
|
|
- name: publish
|
|
public: true
|
|
plan:
|
|
- get: resume-git
|
|
trigger: true
|
|
- task: build-resume-pdf
|
|
config:
|
|
platform: linux
|
|
image_resource:
|
|
type: registry-image
|
|
source: { repository: schickling/latex, tag: "latest" }
|
|
inputs:
|
|
- name: resume-git
|
|
outputs:
|
|
- name: resume-pdf
|
|
run:
|
|
path: /bin/sh
|
|
args:
|
|
- -c
|
|
- |
|
|
cd resume-git
|
|
latex --output-format pdf resume.tex
|
|
latex --output-format pdf resume_for_recruiters.tex
|
|
mv resume.pdf ../resume-pdf/
|
|
mv resume_for_recruiters.pdf ../resume-pdf/
|
|
- task: build-resume-html
|
|
config:
|
|
platform: linux
|
|
image_resource:
|
|
type: registry-image
|
|
source:
|
|
repository: nexus.nulloctet.com:5000/sothr/pdf2htmlex
|
|
tag: "stable"
|
|
username: ((nexus_docker_read.username))
|
|
password: ((nexus_docker_read.password))
|
|
inputs:
|
|
- name: resume-pdf
|
|
outputs:
|
|
- name: resume-html
|
|
run:
|
|
path: /bin/sh
|
|
args:
|
|
- -c
|
|
- |
|
|
cd resume-pdf
|
|
pdf2htmlEX --zoom 1.5 --embed cfijo --dest-dir out resume.pdf
|
|
mv out/resume.html out/index.html
|
|
tar -czvf resume_site.tgz -C out/ .
|
|
mv resume_site.tgz ../resume-html/
|