Skip to content

Commit

Permalink
Create KEY_VAULT_URL env var when a private.env file exists (#3727)
Browse files Browse the repository at this point in the history
* Add in variablkes required when have a local porter config.yaml

* skip SC2153

* fix typo

---------

Co-authored-by: Tim Allen <tim.allen@cloudkubed.com>
  • Loading branch information
marrobi and Tim Allen authored May 10, 2024
1 parent 606a5d9 commit bd0aa62
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions devops/scripts/load_and_validate_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,13 @@ else
export TRE_URL
fi

# if local debugging is configured, then set vars required by ~/.porter/config.yaml
if [ -f "$DIR/../../core/private.env" ]; then
# shellcheck disable=SC1091
source "$DIR/../../core/private.env"
# shellcheck disable=SC2153
KEY_VAULT_URL=$KEYVAULT_URI
export KEY_VAULT_URL
fi

set +o nounset

0 comments on commit bd0aa62

Please sign in to comment.