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

Commit

Permalink
Set blobstore, key manager, and secret manager in migrate (#1818)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo authored Feb 15, 2021
1 parent 4b70090 commit 314ad09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions builders/migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ substitutions:
_DB_SSLMODE:
_DB_USER:
_DB_VERIFICATION_CODE_DATABASE_KEY:
_KEY_MANAGER:
_LOG_LEVEL:
_REPO: 'github.com/google/exposure-notifications-verification-server'
_TAG:
Expand All @@ -38,17 +37,19 @@ steps:
- id: 'migrate'
name: 'gcr.io/${PROJECT_ID}/${_REPO}/migrate:${_TAG}'
env:
- 'BLOBSTORE=GOOGLE_CLOUD_STORAGE'
- 'DB_APIKEY_DATABASE_KEY=${_DB_APIKEY_DATABASE_KEY}'
- 'DB_APIKEY_SIGNATURE_KEY=${_DB_APIKEY_SIGNATURE_KEY}'
- 'DB_CONN=${_DB_CONN}'
- 'DB_DEBUG=${_DB_DEBUG}'
- 'DB_ENCRYPTION_KEY=${_DB_ENCRYPTION_KEY}'
- 'DB_HOST=${_DB_HOST}'
- 'DB_CONN=${_DB_CONN}'
- 'DB_NAME=${_DB_NAME}'
- 'DB_PASSWORD=${_DB_PASSWORD}'
- 'DB_PORT=${_DB_PORT}'
- 'DB_SSLMODE=${_DB_SSLMODE}'
- 'DB_USER=${_DB_USER}'
- 'DB_VERIFICATION_CODE_DATABASE_KEY=${_DB_VERIFICATION_CODE_DATABASE_KEY}'
- 'KEY_MANAGER=${_KEY_MANAGER}'
- 'KEY_MANAGER=GOOGLE_CLOUD_KMS'
- 'LOG_LEVEL=${_LOG_LEVEL}'
- 'SECRET_MANAGER=GOOGLE_SECRET_MANAGER'
1 change: 0 additions & 1 deletion scripts/migrate
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ SUBS="${SUBS},_DB_PORT=${DB_PORT:-"5432"}"
SUBS="${SUBS},_DB_SSLMODE=${DB_SSLMODE:-"disable"}"
SUBS="${SUBS},_DB_USER=${DB_USER:-"verification"}"
SUBS="${SUBS},_DB_VERIFICATION_CODE_DATABASE_KEY=${DB_VERIFICATION_CODE_DATABASE_KEY}"
SUBS="${SUBS},_KEY_MANAGER=${KEY_MANAGER:-"GOOGLE_CLOUD_KMS"}"
SUBS="${SUBS},_LOG_LEVEL=${LOG_LEVEL:-"true"}"

gcloud builds submit --no-source \
Expand Down

0 comments on commit 314ad09

Please sign in to comment.