From 969b7cfceac077ee1263142e22966808390ad8f7 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Mon, 9 Dec 2019 22:26:11 -0600 Subject: [PATCH] Working on adding Concourse pipeline config --- pipeline.yml | 38 ++++++++++++++++++++++++++++++++++++++ upload_pipeline.sh | 8 ++++++++ 2 files changed, 46 insertions(+) create mode 100644 pipeline.yml create mode 100644 upload_pipeline.sh diff --git a/pipeline.yml b/pipeline.yml new file mode 100644 index 0000000..95c1fcd --- /dev/null +++ b/pipeline.yml @@ -0,0 +1,38 @@ +--- +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 + config: + platform: linux + image_resource: + type: registry-image + source: { repository: schickling/latex, tag: "latest" } + inputs: + - name: resume-git + outputs: + - name: resume-files + run: + path: /bin/sh + args: + - -c + - | + cd resume-git + ./scripts/build-pdf-resume.sh + ./scripts/build-pdf-resume-for-recruiters.sh + ./scripts/build-html-resume.sh + mv resume.pdf ../resume-files/ + mv resume_for_recruiters.pdf ../resume-files/ + mv ResumeSite.tar.gz ../resume-files/ diff --git a/upload_pipeline.sh b/upload_pipeline.sh new file mode 100644 index 0000000..ffcf92a --- /dev/null +++ b/upload_pipeline.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +pushd "${DIR}/.." + +fly -t sothr set-pipeline --pipeline resume --config pipeline.yml + +popd