Skip to content

Update Cloud Build deployment local-exec step #107

@zefdelgadillo

Description

@zefdelgadillo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions