Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hamelsmu committed Oct 1, 2019
1 parent a5a6c31 commit f6e0228
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions entrypoint.sh
Expand Up @@ -6,6 +6,33 @@
# exit when any command fails
set -e

#check inputs
if [[ -z "$INPUT_USERNAME" ]]; then
echo "Set the USERNAME input."
exit 1
fi

if [[ -z "$INPUT_PASSWORD" ]]; then
echo "Set the PASSWORD input."
exit 1
fi

if [[ -z "$INPUT_IMAGE_NAME" ]]; then
echo "Set the IMAGE_NAME input."
exit 1
fi

if [[ -z "$INPUT_DOCKERFILE_PATH" ]]; then
echo "Set the DOCKERFILE_PATH input."
exit 1
fi

if [[ -z "$INPUT_BUILD_CONTEXT" ]]; then
echo "Set the BUILD_CONTEXT input."
exit 1
fi


# The following environment variables will be provided by the environment automatically: GITHUB_REPOSITORY, GITHUB_SHA

# send credentials through stdin (it is more secure)
Expand Down

0 comments on commit f6e0228

Please sign in to comment.