Skip to content

Commit

Permalink
allow overwriting the AWS_REGION
Browse files Browse the repository at this point in the history
  • Loading branch information
rwadstein committed Jul 28, 2022
1 parent c5aa129 commit 5fba5e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ if [[ -z $GEM_HOST ]]; then
unset GEM_HOST
fi

# Only export the AWS_REGION if it was specified to be overriden.
if [[ -n $BUILDKITE_PLUGIN_SBC_SHARED_REGION ]]; then
export AWS_REGION="${BUILDKITE_PLUGIN_SBC_SHARED_REGION}"
fi

set -u
export DOCKER_TAG="${BUILDKITE_PLUGIN_SBC_SHARED_TAG:-application}"
export HAS_DB_IMAGE="${BUILDKITE_PLUGIN_SBC_SHARED_HAS_DB_IMAGE:-false}"
Expand Down

0 comments on commit 5fba5e5

Please sign in to comment.