From 8357bfb42c31f8e1221648367d8cfaffab323214 Mon Sep 17 00:00:00 2001 From: Amr Gaber Date: Tue, 16 Jun 2026 16:01:35 -0500 Subject: [PATCH] ci: suppress Cloud Build log streaming in deploy workflow The scoped github-deployer SA can't stream build logs (needs project Viewer/Owner), so gcloud builds submit exited non-zero even though the build + push succeeded. --suppress-logs waits for the build without streaming. --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c5a5487..7f2b599 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,7 +39,9 @@ jobs: run: | IMAGE="us-east1-docker.pkg.dev/treepolitics-prod/api/api:${GITHUB_SHA::7}" echo "IMAGE=$IMAGE" >> "$GITHUB_ENV" - gcloud builds submit --tag "$IMAGE" --project=treepolitics-prod + # --suppress-logs: the scoped deploy SA can't stream Cloud Build logs + # (that needs project Viewer/Owner); gcloud still waits for the build. + gcloud builds submit --tag "$IMAGE" --project=treepolitics-prod --suppress-logs - name: Deploy to Cloud Run run: |