ReachableCEO-Profile-Consul.../build/build-pipeline-server-markdown.sh
Charles N Wyble 56ea2fcd28 Squashed 'vendor/git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server/' changes from 4ba5d84..0b5ec02
0b5ec02 .

git-subtree-dir: vendor/git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server
git-subtree-split: 0b5ec02929c7020905062de5c5a5edfe7cd5f91c
2024-12-18 08:33:29 -06:00

40 lines
1.2 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..."
set -x
$MO_PATH $PipelineClientWorkingDir/Templates/CounsultantInfoSheet.md
$MO_PATH $PipelineClientWorkingDir/Templates/CounsultantInfoSheet.md > "$ConsultantInfoSheetMarkdownOutputFile"
set +x
pandoc \
"$ConsultantInfoSheetMarkdownOutputFile" \
--template $PANDOC_TEMPLATE \
--metadata-file="$BUILDYAML_CONSULTANT_INFOSHEET" \
--from markdown \
--to=pdf \
--output $ConsultantInfoSheetPDFOutputFile
#############################################
# Create the consultant profile PDF
#############################################
# Coming later