Skip to content

Commit

Permalink
debug(indexer): gcloud deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
gaboesquivel committed Aug 21, 2024
1 parent 36178ba commit e44069b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions apps/indexer/cloudbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,35 @@ steps:
args: [
"build",
"-t",
"gcr.io/$PROJECT_ID/$_PROJECT_NAME",
"gcr.io/$PROJECT_ID/$_SERVICE_NAME",
"-f",
# Dockerfile path to project
"apps/indexer/Dockerfile",
"--cache-from",
"gcr.io/$PROJECT_ID/$_PROJECT_NAME:latest",
"gcr.io/$PROJECT_ID/$_SERVICE_NAME:latest",
".",
]
# root directory for docker build
dir: "."
# Push the container image to Container Registry
- name: "gcr.io/cloud-builders/docker"
args: ["push", "gcr.io/$PROJECT_ID/$_PROJECT_NAME"]
args: ["push", "gcr.io/$PROJECT_ID/$_SERVICE_NAME"]
# Deploy container image to Cloud Run
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
entrypoint: gcloud
args:
[
"run",
"deploy",
"$_PROJECT_NAME",
"$_SERVICE_NAME",
"--image",
"gcr.io/$PROJECT_ID/$_PROJECT_NAME",
"gcr.io/$PROJECT_ID/$_SERVICE_NAME",
"--region",
"us-central1",
"--timeout",
"1800s"
]
images:
- gcr.io/$PROJECT_ID/$_PROJECT_NAME
- gcr.io/$PROJECT_ID/$_SERVICE_NAME

serviceAccount: 'projects/$PROJECT_ID/serviceAccounts/your-service-account@$PROJECT_ID.iam.gserviceaccount.com'
serviceAccount: 'projects/$PROJECT_ID/serviceAccounts/your-service-account@$PROJECT_ID.iam.gserviceaccount.com'

0 comments on commit e44069b

Please sign in to comment.