diff --git a/.github/workflows/cron_deploy-from-branch.yml b/.github/workflows/cron_deploy-from-branch.yml index 70a2079..32b7889 100644 --- a/.github/workflows/cron_deploy-from-branch.yml +++ b/.github/workflows/cron_deploy-from-branch.yml @@ -81,7 +81,7 @@ env: GCR_DEFAULT_REPO: ${{ vars.GCR_DEFAULT_REPO }} GAR_DEFAULT_REPO: ${{ vars.GAR_DEFAULT_REPO }} REGION: ${{ inputs.region }} - AVAILABLE_ZONES_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_ZONES_FOR_DEPLOYMENT }} + AVAILABLE_REGIONS_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_REGIONS_FOR_DEPLOYMENT }} jobs: @@ -101,11 +101,11 @@ jobs: - name: Check if region is valid run: |- - if [[ " ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then + if [[ " ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then echo "This region - ${{ env.REGION }} - is allowed" else - echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" - echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" + echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" + echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" exit 1 fi diff --git a/.github/workflows/cron_manual-deploy.yml b/.github/workflows/cron_manual-deploy.yml index eb1cf44..e663db3 100644 --- a/.github/workflows/cron_manual-deploy.yml +++ b/.github/workflows/cron_manual-deploy.yml @@ -52,7 +52,7 @@ env: GCR_DEFAULT_REPO: ${{ vars.GCR_DEFAULT_REPO }} GAR_DEFAULT_REPO: ${{ vars.GAR_DEFAULT_REPO }} REGION: ${{ inputs.region }} - AVAILABLE_ZONES_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_ZONES_FOR_DEPLOYMENT }} + AVAILABLE_REGIONS_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_REGIONS_FOR_DEPLOYMENT }} jobs: deploy: @@ -68,11 +68,11 @@ jobs: - name: Check if region is valid run: |- - if [[ " ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then + if [[ " ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then echo "This region - ${{ env.REGION }} - is allowed" else - echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" - echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" + echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" + echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" exit 1 fi diff --git a/.github/workflows/cron_merged-pr.yml b/.github/workflows/cron_merged-pr.yml index 808c58b..bd756dc 100644 --- a/.github/workflows/cron_merged-pr.yml +++ b/.github/workflows/cron_merged-pr.yml @@ -98,7 +98,7 @@ env: GCR_DEFAULT_REPO: ${{ vars.GCR_DEFAULT_REPO }} GAR_DEFAULT_REPO: ${{ vars.GAR_DEFAULT_REPO }} REGION: ${{ inputs.region }} - AVAILABLE_ZONES_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_ZONES_FOR_DEPLOYMENT }} + AVAILABLE_REGIONS_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_REGIONS_FOR_DEPLOYMENT }} jobs: bump-release: @@ -176,11 +176,11 @@ jobs: - name: Check if region is valid run: |- - if [[ " ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then + if [[ " ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then echo "This region - ${{ env.REGION }} - is allowed" else - echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" - echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" + echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" + echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" exit 1 fi diff --git a/.github/workflows/cron_rollback.yml b/.github/workflows/cron_rollback.yml index bec0b20..854f019 100644 --- a/.github/workflows/cron_rollback.yml +++ b/.github/workflows/cron_rollback.yml @@ -57,7 +57,7 @@ env: GCR_DEFAULT_REPO: ${{ vars.GCR_DEFAULT_REPO }} GAR_DEFAULT_REPO: ${{ vars.GAR_DEFAULT_REPO }} REGION: ${{ inputs.region }} - AVAILABLE_ZONES_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_ZONES_FOR_DEPLOYMENT }} + AVAILABLE_REGIONS_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_REGIONS_FOR_DEPLOYMENT }} jobs: deploy_rollback: @@ -74,11 +74,11 @@ jobs: - name: Check if region is valid run: |- - if [[ " ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then + if [[ " ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then echo "This region - ${{ env.REGION }} - is allowed" else - echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" - echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" + echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" + echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" exit 1 fi diff --git a/.github/workflows/deploy-from-branch.yml b/.github/workflows/deploy-from-branch.yml index 50f5198..6d2b8f0 100644 --- a/.github/workflows/deploy-from-branch.yml +++ b/.github/workflows/deploy-from-branch.yml @@ -86,7 +86,7 @@ env: GCR_DEFAULT_REPO: ${{ vars.GCR_DEFAULT_REPO }} GAR_DEFAULT_REPO: ${{ vars.GAR_DEFAULT_REPO }} REGION: ${{ inputs.region }} - AVAILABLE_ZONES_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_ZONES_FOR_DEPLOYMENT }} + AVAILABLE_REGIONS_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_REGIONS_FOR_DEPLOYMENT }} jobs: deploy: @@ -104,11 +104,11 @@ jobs: - name: Check if region is valid run: |- - if [[ " ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then + if [[ " ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then echo "This region - ${{ env.REGION }} - is allowed" else - echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" - echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" + echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" + echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" exit 1 fi diff --git a/.github/workflows/exceptional_stage_deploy.yml b/.github/workflows/exceptional_stage_deploy.yml index 009aa0a..dd5f1b5 100644 --- a/.github/workflows/exceptional_stage_deploy.yml +++ b/.github/workflows/exceptional_stage_deploy.yml @@ -86,7 +86,7 @@ env: GCR_DEFAULT_REPO: ${{ vars.GCR_DEFAULT_REPO }} GAR_DEFAULT_REPO: ${{ vars.GAR_DEFAULT_REPO }} REGION: ${{ inputs.region }} - AVAILABLE_ZONES_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_ZONES_FOR_DEPLOYMENT }} + AVAILABLE_REGIONS_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_REGIONS_FOR_DEPLOYMENT }} jobs: deploy: @@ -104,11 +104,11 @@ jobs: - name: Check if region is valid run: |- - if [[ " ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then + if [[ " ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then echo "This region - ${{ env.REGION }} - is allowed" else - echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" - echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" + echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" + echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" exit 1 fi diff --git a/.github/workflows/manual-deploy.yml b/.github/workflows/manual-deploy.yml index 801dfb0..6cff9b8 100644 --- a/.github/workflows/manual-deploy.yml +++ b/.github/workflows/manual-deploy.yml @@ -78,7 +78,7 @@ env: GCR_DEFAULT_REPO: ${{ vars.GCR_DEFAULT_REPO }} GAR_DEFAULT_REPO: ${{ vars.GAR_DEFAULT_REPO }} REGION: ${{ inputs.region }} - AVAILABLE_ZONES_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_ZONES_FOR_DEPLOYMENT }} + AVAILABLE_REGIONS_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_REGIONS_FOR_DEPLOYMENT }} jobs: @@ -101,11 +101,11 @@ jobs: - name: Check if region is valid run: |- - if [[ " ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then + if [[ " ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then echo "This region - ${{ env.REGION }} - is allowed" else - echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" - echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" + echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" + echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" exit 1 fi diff --git a/.github/workflows/merged-pr.yml b/.github/workflows/merged-pr.yml index 25e9b96..c309910 100644 --- a/.github/workflows/merged-pr.yml +++ b/.github/workflows/merged-pr.yml @@ -102,7 +102,7 @@ env: GAR_ENABLED: ${{ vars.GAR_ENABLED || 'true' }} GCR_DEFAULT_REPO: ${{ vars.GCR_DEFAULT_REPO }} GAR_DEFAULT_REPO: ${{ vars.GAR_DEFAULT_REPO }} - AVAILABLE_ZONES_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_ZONES_FOR_DEPLOYMENT }} + AVAILABLE_REGIONS_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_REGIONS_FOR_DEPLOYMENT }} jobs: bump-release: @@ -180,11 +180,11 @@ jobs: - name: Check if region is valid run: |- - if [[ " ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then + if [[ " ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then echo "This region - ${{ env.REGION }} - is allowed" else - echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" - echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" + echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" + echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" exit 1 fi diff --git a/.github/workflows/rollback.yml b/.github/workflows/rollback.yml index 9dcb652..730a439 100644 --- a/.github/workflows/rollback.yml +++ b/.github/workflows/rollback.yml @@ -67,7 +67,7 @@ env: GCR_DEFAULT_REPO: ${{ vars.GCR_DEFAULT_REPO }} GAR_DEFAULT_REPO: ${{ vars.GAR_DEFAULT_REPO }} REGION: ${{ inputs.region }} - AVAILABLE_ZONES_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_ZONES_FOR_DEPLOYMENT }} + AVAILABLE_REGIONS_FOR_DEPLOYMENT: ${{ vars.AVAILABLE_REGIONS_FOR_DEPLOYMENT }} jobs: deploy_rollback: @@ -84,11 +84,11 @@ jobs: - name: Check if region is valid run: |- - if [[ " ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then + if [[ " ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]} " =~ ${{ env.REGION }} ]]; then echo "This region - ${{ env.REGION }} - is allowed" else - echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" - echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_ZONES_FOR_DEPLOYMENT[*]}" + echo "Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" + echo "::error::Region - ${{ env.REGION }} - is not yet supported. Supported regions are: ${AVAILABLE_REGIONS_FOR_DEPLOYMENT[*]}" exit 1 fi