Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
s/instance/conn
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Aug 30, 2020
1 parent fa6c6b2 commit 06f8279
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions builders/cloud-sql-exec
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ set -eEuo pipefail

DB_PORT=${DB_PORT:-5432}

if [ -z "${DB_INSTANCE:-}" ]; then
echo "missing DB_INSTANCE"
if [ -z "${DB_CONN:-}" ]; then
echo "missing DB_CONN"
exit 1
fi

Expand All @@ -31,7 +31,7 @@ function cleanup {
}

echo "==> Staring Cloud SQL Proxy"
/cloud_sql_proxy -instances=${DB_INSTANCE}=tcp:${DB_PORT} &
/cloud_sql_proxy -instances=${DB_CONN}=tcp:${DB_PORT} &
CLOUD_SQL_PID=$!
trap cleanup EXIT

Expand Down
4 changes: 2 additions & 2 deletions builders/migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ substitutions:
_DB_DEBUG:
_DB_ENCRYPTION_KEY:
_DB_HOST:
_DB_INSTANCE:
_DB_CONN:
_DB_NAME:
_DB_PASSWORD:
_DB_PORT:
Expand All @@ -43,7 +43,7 @@ steps:
- 'DB_DEBUG=${_DB_DEBUG}'
- 'DB_ENCRYPTION_KEY=${_DB_ENCRYPTION_KEY}'
- 'DB_HOST=${_DB_HOST}'
- 'DB_INSTANCE=${_DB_INSTANCE}'
- 'DB_CONN=${_DB_CONN}'
- 'DB_NAME=${_DB_NAME}'
- 'DB_PASSWORD=${_DB_PASSWORD}'
- 'DB_PORT=${_DB_PORT}'
Expand Down
2 changes: 1 addition & 1 deletion scripts/migrate
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ fi
SUBS="_TAG=${TAG}"
SUBS="${SUBS},_DB_APIKEY_DATABASE_KEY=${DB_APIKEY_DATABASE_KEY}"
SUBS="${SUBS},_DB_APIKEY_SIGNATURE_KEY=${DB_APIKEY_SIGNATURE_KEY}"
SUBS="${SUBS},_DB_CONN=${DB_CONN}"
SUBS="${SUBS},_DB_DEBUG=${DB_DEBUG:-"true"}"
SUBS="${SUBS},_DB_ENCRYPTION_KEY=${DB_ENCRYPTION_KEY}"
SUBS="${SUBS},_DB_HOST=${DB_HOST:-"127.0.0.1"}"
SUBS="${SUBS},_DB_INSTANCE=${DB_INSTANCE}"
SUBS="${SUBS},_DB_NAME=${DB_NAME:-"verification"}"
SUBS="${SUBS},_DB_PASSWORD=${DB_PASSWORD}"
SUBS="${SUBS},_DB_PORT=${DB_PORT:-"5432"}"
Expand Down

0 comments on commit 06f8279

Please sign in to comment.