steps:
- name: "gcr.io/cloud-builders/docker"
entrypoint: "bash"
args:
- "-c"
- |
docker build \
-t gcr.io/$PROJECT_ID/${_SERVICE_NAME}:latest . && \
docker push gcr.io/$PROJECT_ID/${_SERVICE_NAME}:latest
- name: "gcr.io/cloud-builders/gcloud"
entrypoint: "bash"
args:
- "-c"
- |
gcloud run deploy ${_SERVICE_NAME} \
--image gcr.io/$PROJECT_ID/${_SERVICE_NAME}:latest \
--region us-central1 --platform managed \
--allow-unauthenticated \
--set-env-vars PROJECT_ID=$PROJECT_ID
timeout: 800s
substitutions:
_SERVICE_NAME: a2a-server-rust