Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Cloud Build deployment local-exec step #107

Open
zefdelgadillo opened this issue Oct 17, 2023 · 0 comments
Open

Update Cloud Build deployment local-exec step #107

zefdelgadillo opened this issue Oct 17, 2023 · 0 comments

Comments

@zefdelgadillo
Copy link

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:

  1. (Quick fix) Remove --git-source-dir=. from the script, then cloud build simply use the local directory for the build.
  2. 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
  3. Replace local-exec with a Cloud Build trigger terraform resource
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant