Skip to content

Commit

Permalink
initial commit of entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mhidaka committed May 10, 2020
1 parent df73750 commit eeae630
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh -l

[ -z "${INPUT_TARGET_DIR}" ] && { echo "Need to set TARGET_DIR. Default is './'"; exit 1; }
[ -z "${INPUT_CONFIG_FILE}" ] && { echo "Need to set CONFIG_FILE. Default is 'config.yml'"; exit 1; }
[ -z "${INPUT_FORMAT}" ] && { echo "Need to set INPUT_FORMAT. Default is 'PDF'"; exit 1; }

# TODO Enable env paramaters that only INPUT_TARGET_DIR works well.

echo "Run Initialization and build step"
cd $INPUT_TARGET_DIR && bundle install && npm run pdf
echo "Finish build step"

0 comments on commit eeae630

Please sign in to comment.