Skip to content

Commit

Permalink
chore: specify options.logging in cloud build (#3223)
Browse files Browse the repository at this point in the history
In this PR:
- Specify options.logging` in Cloud Build config.

The cloud build failed when pushing:
```
Error: Insufficient step blocks

  on ../../modules/infra_cloud_build/cloud_build.tf line 32, in resource "google_cloudbuild_trigger" "triggers":
  32:   build {

At least 1 "step" blocks are required.
  
Error: Insufficient step blocks

  on ../../modules/infra_cloud_build/cloud_build.tf line 32, in resource "google_cloudbuild_trigger" "triggers":
  32:   build {

At least 1 "step" blocks are required.
```

Try to resolve this issue following
[this](https://yaqs.corp.google.com/eng/q/4648617514492755968#n1) answer
in YAQS.
  • Loading branch information
JoeWang1127 authored Sep 23, 2024
1 parent 7cfab14 commit 9105674
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ steps:
id: library-generation-build
waitFor: ["-"]

options:
logging: CLOUD_LOGGING_ONLY

images:
- ${_SHA_IMAGE_ID}
- ${_LATEST_IMAGE_ID}
Expand Down

0 comments on commit 9105674

Please sign in to comment.