Files
ReachableCEO-Profile-Consul…/build/build-pipeline-server-markdown.sh
Charles N Wyble d86c9e0d3b Squashed 'vendor/git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server/' changes from b10c201..184fca8
184fca8 .

git-subtree-dir: vendor/git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server
git-subtree-split: 184fca818afa39a833071c7e05b42c14a0874dc8
2024-12-18 08:23:25 -06:00

41 lines
1.4 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"
set -x
export ConsultantInfoSheetMarkdownOutputFile="$BUILD_OUTPUT_DIR/$PROFILE_FILE_NAME-ConsultantInfoSheet.md"
export ConsultantInfoSheetPDFOutputFile="$BUILD_OUTPUT_DIR/$PROFILE_FILE_NAME-ConsultantInfoSheet.pdf"
$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