Skip to content

Commit

Permalink
add evironment variable to set the publish URL
Browse files Browse the repository at this point in the history
  • Loading branch information
cybernop committed Mar 3, 2025
1 parent aad5d33 commit 010205b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions docker/genonce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ if [ ! -z ${SUSHI_VERSION} ] ; then
printf "\n\nInstall and inflate FHIR packages...\n"
fhir restore
printf "\n...done!\n\n"

fi

if [ -z ${SUSHI_VERSION} ] ; then
NO_SUSHI=-no-sushi
fi

# Build arguments for IG Publisher
if [ -n "${PUBLISH_URL}" ]; then
PUBLISH=-publish ${PUBLISH_URL}
fi

# Run IG Publisher
Expand All @@ -39,11 +49,7 @@ fi
export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -Dfile.encoding=UTF-8"

if test -f "$publisher"; then
if [ -z ${SUSHI_VERSION} ] ; then
java -jar $publisher -ig . -no-sushi
else
java -jar $publisher -ig .
fi
java -jar $publisher -ig . $NO_SUSHI $PUBLISH
else
echo IG Publisher NOT FOUND. Aborting...
fi
Expand Down

0 comments on commit 010205b

Please sign in to comment.