Skip to content

Commit

Permalink
build the server
Browse files Browse the repository at this point in the history
  • Loading branch information
srossross committed Dec 3, 2024
1 parent 923c4c5 commit 7bef26b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@ steps:
"--service-account=scraper@$PROJECT_ID.iam.gserviceaccount.com",
"--set-env-vars=COMMAND=vulnerabilities,SCORE_ECOSYSTEM=PyPI",
]
- name: "gcr.io/cloud-builders/gcloud"
args:
[
"run",
"deploy",
"score",
"--region=us-west1",
"--image=us-west1-docker.pkg.dev/$PROJECT_ID/containers/scraper:$REVISION_ID",
"--service-account=scraper@$PROJECT_ID.iam.gserviceaccount.com",
"--command=bash",
"--args=-c,fastapi run score/app.py --port $PORT",
"--allow-unauthenticated"
]
- name: "gcr.io/cloud-builders/gcloud"
args:
[
Expand Down

0 comments on commit 7bef26b

Please sign in to comment.