DSR-Pipeline-ClientExample/local/build/build-stakeholder-output-client.sh

31 lines
1.1 KiB
Bash
Raw Normal View History

2024-12-14 23:22:09 -06:00
#!/bin/bash
set -euo pipefail
# This is a demo script for the DSR-Pipeline-Server
# This script creates PDF output from markdown input
###############@##################################
#Edit the below file to reflect your information
##################################################
2024-12-14 23:51:16 -06:00
source "../StakeholderOutputVariables.env"
2024-12-14 23:22:09 -06:00
####################################################
#DO NOT CHANGE ANYTHING BELOW THIS LINE
####################################################
export MO_PATH="bash ../../vendor/git.knownelement.com/ExternalVendorCode/mo/mo"
echo "Cleaning up from previous runs..."
2024-12-14 23:51:16 -06:00
rm $BUILDYAML_STAKEHOLDER_OUTPUT || true
rm $StakeholderOutputMarkdownOutputFile || true
rm $StakeholderOutputPDFOutputFile || true
2024-12-14 23:22:09 -06:00
echo "Combining markdown files into single input file for pandoc..."
cat $StakeholderOutputMarkdownInputFile > $StakeholderOutputMarkdownOutputFile
#Call the build stakeholder output microservice
2024-12-14 23:24:04 -06:00
echo "Calling the build stakeholder output microservice..."
2024-12-14 23:22:09 -06:00
bash ../../vendor/git.knownelement.com/reachableceo/DSR-Pipeline-Server/build/build-stakeholder-output-server.sh