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 c240d89 commit dbeea53
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 52 deletions.
Empty file removed apps/indexer/.debug
Empty file.
22 changes: 0 additions & 22 deletions apps/indexer/.editorconfig

This file was deleted.

52 changes: 22 additions & 30 deletions apps/indexer/cloudbuild.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,36 @@
options:
logging: CLOUD_LOGGING_ONLY

steps:
# Build the container image
- name: 'gcr.io/cloud-builders/docker'
- name: "gcr.io/cloud-builders/docker"
args: [
'build',
'-t',
'gcr.io/$PROJECT_ID/$_PROJECT_NAME',
'-f',
"build",
"-t",
"gcr.io/$PROJECT_ID/$_PROJECT_NAME",
"-f",
# Dockerfile path to project
'apps/indexer/Dockerfile',
'--cache-from',
'gcr.io/$PROJECT_ID/$_PROJECT_NAME:latest',
'.',
"apps/bitcash-auth/Dockerfile",
"--cache-from",
"gcr.io/$PROJECT_ID/$_PROJECT_NAME:latest",
".",
]
# root directory for docker build
dir: '.'
dir: "."
# Push the container image to Container Registry
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/$_PROJECT_NAME']
- name: "gcr.io/cloud-builders/docker"
args: ["push", "gcr.io/$PROJECT_ID/$_PROJECT_NAME"]
# Deploy container image to Cloud Run
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
entrypoint: gcloud
args:
[
'run',
'deploy',
'$_PROJECT_NAME',
'--image',
'gcr.io/$PROJECT_ID/$_PROJECT_NAME',
'--region',
'us-central1',
'--allow-unauthenticated',
'--concurrency',
'80',
'--memory',
'2048Mi',
'--cpu',
'1',
"run",
"deploy",
"$_PROJECT_NAME",
"--image",
"gcr.io/$PROJECT_ID/$_PROJECT_NAME",
"--region",
"us-central1",
"--timeout",
"1800s"
]
images:
- gcr.io/$PROJECT_ID/$_PROJECT_NAME
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit dbeea53

Please sign in to comment.