Compare commits
5 Commits
c0dffd42fb
...
93676f3cbf
Author | SHA1 | Date | |
---|---|---|---|
93676f3cbf | |||
67ba17c9a0 | |||
331007c3f4 | |||
5586613655 | |||
9c2fd66186 |
44
local/DSRVariables.env
Normal file
44
local/DSRVariables.env
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
###################################################
|
||||||
|
# Modify these values to suit
|
||||||
|
###################################################
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
#SET THESE VARIABLES OR NOTHING WILL WORK!!!!
|
||||||
|
|
||||||
|
export PipelineClientWorkingDir="D:/tsys/@ReachableCEO/DSR-Pipeline-ReachableCEO/local"
|
||||||
|
export StakeholderOutputMarkdownInputFile="$1"
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
##########################################
|
||||||
|
# Layout/title page /formatting options
|
||||||
|
##########################################
|
||||||
|
|
||||||
|
export ReportAuthor="Charles N Wyble"
|
||||||
|
export AuthorTagline="Tenaciy. Velocity. Focus."
|
||||||
|
export AuthorLogo="D:/tsys/@ReachableCEO/ReachableCEO.png"
|
||||||
|
export SourceCode="https://git.knownelement.com/reachableceo/DSR_Pipeline-ReachableCEO"
|
||||||
|
export URLCOLOR="blue"
|
||||||
|
export PAGEBACKGROUND="$PipelineClientWorkingDir/build/background5.pdf"
|
||||||
|
export PANDOC_TEMPLATE="eisvogel"
|
||||||
|
export YamlInputTemplateFileStakeholderOutput="$PipelineClientWorkingDir/build/BuildTemplate-DSR.yml"
|
||||||
|
|
||||||
|
###################################################################
|
||||||
|
# Output Artifact variables
|
||||||
|
###################################################################
|
||||||
|
|
||||||
|
export BUILD_TEMP_DIR="$PipelineClientWorkingDir/build-temp"
|
||||||
|
export BUILD_OUTPUT_DIR="$PipelineClientWorkingDir/build-output"
|
||||||
|
export BUILDYAML_STAKEHOLDER_OUTPUT="$BUILD_TEMP_DIR/DSR.yml"
|
||||||
|
|
||||||
|
export StakeholderOutputMarkdownOutputFile="$BUILD_OUTPUT_DIR/DSR.md"
|
||||||
|
export StakeholderOutputPDFOutputFile="$BUILD_OUTPUT_DIR/DSR.pdf"
|
||||||
|
|
||||||
|
###################################################################
|
||||||
|
# Publish variables
|
||||||
|
###################################################################
|
||||||
|
|
||||||
|
export DISCOURSE_URL="https://community.turnsys.com"
|
||||||
|
export DISCOURSE_API_USERNAME="reachableceo"
|
||||||
|
export DISCOURSE_CATEGORY_ID="61"
|
||||||
|
export DISCOURSE_POST_TITLE="Daily Stakeholder Report"
|
@@ -1,24 +0,0 @@
|
|||||||
###################################################
|
|
||||||
# Modify these values to suit
|
|
||||||
###################################################
|
|
||||||
|
|
||||||
#############################################################################
|
|
||||||
#SET THIS NEXT VARIABLE OR NOTHING WILL WORK!!!!
|
|
||||||
|
|
||||||
export PipelineClientWorkingDir="D:/tsys/@ReachableCEO/DSR-Pipeline-ReachableCEO/local"
|
|
||||||
|
|
||||||
#SET THE PREVIOUS VARIABLE OR NOTHING WILL WORK!!!!
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
##########################################
|
|
||||||
# Layout/title page /formatting options
|
|
||||||
##########################################
|
|
||||||
|
|
||||||
export ReportAuthor="Charles N Wyble"
|
|
||||||
export AuthorTagline="Tenaciy. Velocity. Focus."
|
|
||||||
export AuthorLogo="D:/tsys/@ReachableCEO/ReachableCEO.png"
|
|
||||||
export SourceCode="https://git.knownelement.com/reachableceo/DSR_Pipeline-ReachableCEO"
|
|
||||||
export URLCOLOR="blue"
|
|
||||||
export PAGEBACKGROUND="$PipelineClientWorkingDir/build/background5.pdf"
|
|
||||||
export PANDOC_TEMPLATE="eisvogel"
|
|
||||||
export YamlInputTemplateFileStakeholderOutput="$PipelineClientWorkingDir/build/BuildTemplate-StakeholderOutput.yml"
|
|
@@ -10,7 +10,7 @@ set -euo pipefail
|
|||||||
#Edit the below file to reflect your information
|
#Edit the below file to reflect your information
|
||||||
##################################################
|
##################################################
|
||||||
|
|
||||||
source "../StakeholderOutputVariables.env"
|
source "../DSRVariables.env"
|
||||||
|
|
||||||
####################################################
|
####################################################
|
||||||
####################################################
|
####################################################
|
||||||
@@ -26,13 +26,6 @@ source "../StakeholderOutputVariables.env"
|
|||||||
|
|
||||||
export MO_PATH="bash ../../vendor/git.knownelement.com/ExternalVendorCode/mo/mo"
|
export MO_PATH="bash ../../vendor/git.knownelement.com/ExternalVendorCode/mo/mo"
|
||||||
|
|
||||||
export BUILD_TEMP_DIR="$PipelineClientWorkingDir/build-temp"
|
|
||||||
export BUILD_OUTPUT_DIR="$PipelineClientWorkingDir/build-output"
|
|
||||||
|
|
||||||
export BUILDYAML_STAKEHOLDER_OUTPUT="$BUILD_TEMP_DIR/StakeholderOutput.yml"
|
|
||||||
export StakeholderOutputMarkdownOutputFile="$BUILD_OUTPUT_DIR/StakeholderOutput.md"
|
|
||||||
export StakeholderOutputPDFOutputFile="$BUILD_OUTPUT_DIR/StakeholderOutput.pdf"
|
|
||||||
|
|
||||||
export StakeholderOutputMarkdownInputFile="$1"
|
export StakeholderOutputMarkdownInputFile="$1"
|
||||||
|
|
||||||
echo "Cleaning up from previous runs..."
|
echo "Cleaning up from previous runs..."
|
@@ -12,8 +12,8 @@ fi
|
|||||||
echo "Uploading file..."
|
echo "Uploading file..."
|
||||||
upload_response=$(curl -s -X POST "$DISCOURSE_URL/uploads.json" \
|
upload_response=$(curl -s -X POST "$DISCOURSE_URL/uploads.json" \
|
||||||
-H "Content-Type: multipart/form-data" \
|
-H "Content-Type: multipart/form-data" \
|
||||||
-H "Api-Key: $API_KEY" \
|
-H "Api-Key: $DISCOURSE_API_KEY" \
|
||||||
-H "Api-Username: $API_USERNAME" \
|
-H "Api-Username: $DISCOURSE_API_USERNAME" \
|
||||||
-F "file=@$FILE_PATH;type=application/pdf" \
|
-F "file=@$FILE_PATH;type=application/pdf" \
|
||||||
-F "type=composer")
|
-F "type=composer")
|
||||||
|
|
||||||
@@ -38,13 +38,13 @@ CONTENT="$CONTENT\n\n[Download todays report in PDF format]($short_url)"
|
|||||||
echo "Creating new topic..."
|
echo "Creating new topic..."
|
||||||
post_response=$(curl -s -X POST "$DISCOURSE_URL/posts.json" \
|
post_response=$(curl -s -X POST "$DISCOURSE_URL/posts.json" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Api-Key: $API_KEY" \
|
-H "Api-Key: $DISCOURSE_API_KEY" \
|
||||||
-H "Api-Username: $API_USERNAME" \
|
-H "Api-Username: $DISCOURSE_API_USERNAME" \
|
||||||
-d @- <<EOF
|
-d @- <<EOF
|
||||||
{
|
{
|
||||||
"title": "$TITLE",
|
"title": "$DISCOURSE_POST_TITLE",
|
||||||
"raw": "$CONTENT",
|
"raw": "$CONTENT",
|
||||||
"category": $CATEGORY_ID
|
"category": $DISCOURSE_CATEGORY_ID
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user