Initial dev deployment [infra]
This commit is contained in:
@@ -9,6 +9,7 @@ REPO_ROOT="$(cd "$(dirname "$0")/../../.." && pwd)"
|
||||
cd "${REPO_ROOT}"
|
||||
|
||||
sh ci/scripts/common/ensure_env_version.sh
|
||||
. ci/scripts/common/runtime_env.sh
|
||||
|
||||
normalize_env_file() {
|
||||
file="$1"
|
||||
@@ -34,19 +35,8 @@ load_env_file() {
|
||||
|
||||
. ci/scripts/common/nats_env.sh
|
||||
|
||||
DISCOVERY_ENV_NAME="${DISCOVERY_ENV:-prod}"
|
||||
RUNTIME_ENV_FILE="./ci/${DISCOVERY_ENV_NAME}/.env.runtime"
|
||||
|
||||
if [ ! -f "${RUNTIME_ENV_FILE}" ]; then
|
||||
echo "[discovery-deploy] runtime env file not found: ${RUNTIME_ENV_FILE}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
normalize_env_file "${RUNTIME_ENV_FILE}"
|
||||
normalize_env_file ./.env.version
|
||||
|
||||
load_env_file "${RUNTIME_ENV_FILE}"
|
||||
load_env_file ./.env.version
|
||||
DISCOVERY_ENV_NAME="${DISCOVERY_ENV:-$(resolve_runtime_env_name)}"
|
||||
load_runtime_env_bundle "${DISCOVERY_ENV_NAME}"
|
||||
|
||||
load_nats_env
|
||||
|
||||
|
||||
Reference in New Issue
Block a user