-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
The Cloud Build deployment step, which creates two container images and saves them to artifact registry is failing because of a deprecated gcloud flag cloud_run.tf#L85:
ERROR: (gcloud.builds.submit) unrecognized
│ arguments: --git-source-dir=. (did you mean '--gcs-source-staging-dir'?)
A few options to fix this include:
- (Quick fix) Remove
--git-source-dir=.from the script, then cloud build simply use the local directory for the build. - Decouple Cloud Build from Terraform as proposed in Split infrastructure build resources from application build resources #104; we could further consolidate by including Cloud Run deployments into the cloudbuild.yaml file
- Replace local-exec with a Cloud Build trigger terraform resource
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels