Skip to content

Commit

Permalink
fix: set defaults in entrypoint to prevent failures for images
Browse files Browse the repository at this point in the history
Fixes #22
  • Loading branch information
codfish committed Apr 20, 2021
1 parent 7ea3f73 commit ee45d48
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 ee45d48

Please sign in to comment.