Skip to content

Commit

Permalink
test deploy demo mle
Browse files Browse the repository at this point in the history
  • Loading branch information
saladgg committed Sep 27, 2021
1 parent fcf3783 commit 77767be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
10 changes: 5 additions & 5 deletions cloudbuild_demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ steps:
[
"build",
"-t",
"europe-west1-docker.pkg.dev/$PROJECT_ID/sghi/mle_demo:$COMMIT_SHA",
"europe-west1-docker.pkg.dev/$PROJECT_ID/sghi/mle-demo:$COMMIT_SHA",
".",
]

# Push the container image to Container Registry
- name: "gcr.io/cloud-builders/docker"
args:
["push", "europe-west1-docker.pkg.dev/$PROJECT_ID/sghi/mle_demo:$COMMIT_SHA"]
["push", "europe-west1-docker.pkg.dev/$PROJECT_ID/sghi/mle-demo:$COMMIT_SHA"]

# Deploy an image from Container Registry to Cloud Run
- name: 'gcr.io/cloud-builders/gcloud'
args: [
'beta',
'run',
'deploy',
'mle_demo',
'--image', 'europe-west1-docker.pkg.dev/$PROJECT_ID/sghi/mle_demo:$COMMIT_SHA',
'mle-demo',
'--image', 'europe-west1-docker.pkg.dev/$PROJECT_ID/sghi/mle-demo:$COMMIT_SHA',
'--region', 'europe-west1',
'--platform', 'managed',
'--allow-unauthenticated',
Expand All @@ -36,7 +36,7 @@ steps:
]

images:
- "europe-west1-docker.pkg.dev/$PROJECT_ID/sghi/mle_demo:$COMMIT_SHA"
- "europe-west1-docker.pkg.dev/$PROJECT_ID/sghi/mle-demo:$COMMIT_SHA"

timeout: 1200s
queueTtl: 3600s
5 changes: 1 addition & 4 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = env.list(
"DJANGO_ALLOWED_HOSTS",
default=[
".savannahghi.org",
"mle.savannahghi.org",
],
default=[".savannahghi.org", "mle.savannahghi.org", "mle-demo.savannahghi.org"],
)

# DATABASES
Expand Down

0 comments on commit 77767be

Please sign in to comment.