From 5141019b54e24d8df6db8619dd1585c8fb1a7587 Mon Sep 17 00:00:00 2001 From: Claas Augner <495429+caugner@users.noreply.github.com> Date: Mon, 16 Sep 2024 11:35:01 +0200 Subject: [PATCH] fix(build): use pipefail to fail function deployments (#11806) --- .github/workflows/prod-build.yml | 2 ++ .github/workflows/stage-build.yml | 2 ++ .github/workflows/test-build.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/prod-build.yml b/.github/workflows/prod-build.yml index da267b3640f3..60e929778fc7 100644 --- a/.github/workflows/prod-build.yml +++ b/.github/workflows/prod-build.yml @@ -349,6 +349,8 @@ jobs: - name: Deploy Function if: ${{ ! vars.SKIP_FUNCTION }} run: |- + set -eo pipefail + for region in europe-west1 us-west1 asia-east1; do gcloud beta functions deploy mdn-prod-prod-$region \ --gen2 \ diff --git a/.github/workflows/stage-build.yml b/.github/workflows/stage-build.yml index 5c1a301b94ab..2f708eda19b1 100644 --- a/.github/workflows/stage-build.yml +++ b/.github/workflows/stage-build.yml @@ -365,6 +365,8 @@ jobs: - name: Deploy Function if: ${{ ! vars.SKIP_FUNCTION }} run: |- + set -eo pipefail + for region in europe-west1 us-west1 asia-east1; do gcloud beta functions deploy mdn-nonprod-stage-$region \ --gen2 \ diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index bfa70d1d960d..f3e401afd616 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -245,6 +245,8 @@ jobs: - name: Deploy Function if: ${{ ! vars.SKIP_FUNCTION }} run: |- + set -eo pipefail + for region in europe-west3; do gcloud beta functions deploy mdn-nonprod-test-$region \ --gen2 \