a143c0b . git-subtree-dir: vendor/git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server git-subtree-split: a143c0b2a2f2324e8f109c24f83cf26209ea6d79
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
#####################################################################################################
|
|
#Markdown to PDF Consultant information sheet and profile
|
|
#####################################################################################################
|
|
|
|
#############################################
|
|
# Create the consultant information PDF
|
|
#############################################
|
|
|
|
# Expand variables into rendered YAML files. These will be used by pandoc to create the output artifacts
|
|
|
|
$MO_PATH $YamlInputTemplateFileConsultantInfoSheet > $BUILDYAML_CONSULTANT_INFOSHEET
|
|
|
|
echo "Creating candidate info sheet..."
|
|
|
|
echo "Profile file name: $PROFILE_FILE_NAME"
|
|
echo "Markdown file: $ConsultantInfoSheetMarkdownOutputFile"
|
|
echo "PDF file: $ConsultantInfoSheetPDFOutputFile"
|
|
|
|
set -x
|
|
|
|
|
|
$MO_PATH $PipelineClientWorkingDir/Templates/CounsultantInfoSheet.md > "$ConsultantInfoSheetMarkdownOutputFile"
|
|
|
|
pandoc \
|
|
"$ConsultantInfoSheetMarkdownOutputFile" \
|
|
--template $PANDOC_TEMPLATE \
|
|
--metadata-file="$BUILDYAML_CONSULTANT_INFOSHEET" \
|
|
--from markdown \
|
|
--to=pdf \
|
|
--output $ConsultantInfoSheetPDFOutputFile
|
|
|
|
#############################################
|
|
# Create the consultant profile PDF
|
|
#############################################
|
|
|
|
# Coming later
|