Skip to content

Commit

Permalink
chore: setup demo deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
kennedykori committed Sep 28, 2021
1 parent 2932833 commit b3a9600
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ steps:
[
"build",
"-t",
"europe-west1-docker.pkg.dev/$PROJECT_ID/sghi/mle:$COMMIT_SHA",
"europe-west1-docker.pkg.dev/$PROJECT_ID/sghi/mle-${_DEPLOYMENT_TYPE}:$COMMIT_SHA",
".",
]

Expand All @@ -20,18 +20,18 @@ steps:
'beta',
'run',
'deploy',
'mle',
'${_SERVICE_NAME}',
'--image', 'europe-west1-docker.pkg.dev/$PROJECT_ID/sghi/mle-${_DEPLOYMENT_TYPE}:$COMMIT_SHA',
'--region', 'europe-west1',
'--platform', 'managed',
'--allow-unauthenticated',
'--add-cloudsql-instances', '${_CLOUDSQL_INSTANCE_CONNECTION_NAME}',
'--set-env-vars', 'GOOGLE_CLOUD_PROJECT=$PROJECT_ID,SETTINGS_NAME=mle_django_settings,DJANGO_SETTINGS_MODULE=config.settings.production,DEFAULT_ORG_ID=99edd1b5-1ff2-49f4-8b0e-261c78909695',
'--set-env-vars', 'GOOGLE_CLOUD_PROJECT=$PROJECT_ID,SETTINGS_NAME=${_SETTINGS_NAME},DJANGO_SETTINGS_MODULE=config.settings.production,DEFAULT_ORG_ID=99edd1b5-1ff2-49f4-8b0e-261c78909695',
'--min-instances', '1',
'--max-instances', '8',
'--memory', '512M',
'--cpu', '1',
'--set-secrets', '/tmp/secrets/.env=mle_demo_django_settings:latest',
'--set-secrets', '/tmp/secrets/.env=${_SETTINGS_NAME}:latest',
'--timeout', '59m59s'
]

Expand Down

0 comments on commit b3a9600

Please sign in to comment.