Skip to content

Commit

Permalink
debug-show-workflow (#1106)
Browse files Browse the repository at this point in the history
  • Loading branch information
koropets authored Dec 28, 2020
1 parent c4ea724 commit d3bd624
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions run_workflow_and_argo.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash
set -e
if [[ -n "${DEBUG_SHOW_WORKFLOW}" ]]; then
set -x
fi
if [[ -z "${MACHINE_CONFIG}" && -z "${GORDO_NAME}" ]]; then
cp /code/config_crd.yml /tmp/config.yml
elif [[ -z "${MACHINE_CONFIG}" ]]; then
Expand All @@ -9,7 +12,18 @@ else
echo "$MACHINE_CONFIG" > /tmp/config.yml
fi

if [[ -n "${DEBUG_SHOW_WORKFLOW}" ]]; then
echo "===CONFIG==="
cat /tmp/config.yml
fi

gordo workflow generate --machine-config /tmp/config.yml --output-file /tmp/generated-config.yml

if [[ -n "${DEBUG_SHOW_WORKFLOW}" ]]; then
echo "===GENERATED CONFIG==="
cat /tmp/generated-config.yml
fi

argo lint /tmp/generated-config.yml
if [ "$ARGO_SUBMIT" = true ] ; then
argo submit /tmp/generated-config.yml
Expand Down

0 comments on commit d3bd624

Please sign in to comment.