Skip to content

Commit

Permalink
Merge pull request #25 from codfish/set-defaults
Browse files Browse the repository at this point in the history
fix: set defaults in entrypoint to prevent failures for images
  • Loading branch information
kciter authored Apr 21, 2021
2 parents 7dcbaae + ee45d48 commit 2879918
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/bin/bash
set -e

INPUT_PATH="${INPUT_PATH:-.}"
INPUT_DOCKERFILE="${INPUT_DOCKERFILE:-Dockerfile}"
INPUT_TAGS="${INPUT_TAGS:-latest}"
INPUT_CREATE_REPO="${INPUT_CREATE_REPO:-false}"
INPUT_SET_REPO_POLICY="${INPUT_PATH:-false}"
INPUT_REPO_POLICY_FILE="${INPUT_PATH:-repo-policy.json}"

function main() {
sanitize "${INPUT_ACCESS_KEY_ID}" "access_key_id"
sanitize "${INPUT_SECRET_ACCESS_KEY}" "secret_access_key"
Expand Down

0 comments on commit 2879918

Please sign in to comment.