Skip to content

Commit

Permalink
UPDATE
Browse files Browse the repository at this point in the history
  • Loading branch information
mazzasaverio committed Feb 6, 2024
1 parent 5fb9f82 commit 6286100
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ code_report.py
custom_tree_and_files_corrected.txt

# .tfstate files
*.tfstate
*.tfstate.*
terraform.tfvars
terraform/terraform.tfvars
.terraform.lock.hcl
.terraform
*.backup
Expand Down
8 changes: 4 additions & 4 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
steps:
- name: "gcr.io/cloud-builders/docker"
args: ["build", "-t", "gcr.io/$PROJECT_ID/fastapi-cloudrun:latest", "."]
args: ["build", "-t", "gcr.io/$PROJECT_ID/fastapi-cloudrun", "./backend"]

- name: "gcr.io/cloud-builders/docker"
args: ["push", "gcr.io/$PROJECT_ID/fastapi-cloudrun:latest"]
args: ["push", "gcr.io/$PROJECT_ID/fastapi-cloudrun"]

- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
entrypoint: gcloud
args:
- "run"
- "deploy"
- "cloudrun-service" # Replace with the name of your cloud run service
- "--image=gcr.io/$PROJECT_ID/fastapi-cloudrun:latest"
- "--image=gcr.io/$PROJECT_ID/fastapi-cloudrun"
- "--region=us-central1" #Replace with your region, for example us-center1
- "--platform=managed"
- "--allow-unauthenticated" # Remove this line if your service requires authentication

images:
- "gcr.io/$PROJECT_ID/fastapi-cloudrun:latest"
- "gcr.io/$PROJECT_ID/fastapi-cloudrun"

0 comments on commit 6286100

Please sign in to comment.