Skip to content

Commit b88f6b4

Browse files
committed
Add blue deploy job. Fix e2e test condition.
1 parent ba9cf32 commit b88f6b4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/deploy-blue-green.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ jobs:
1212
apigee_environment: int
1313
environment: preprod
1414
sub_environment: int-green
15+
deploy-blue:
16+
uses: ./.github/workflows/deploy-template.yml
17+
with:
18+
apigee_environment: int
19+
environment: preprod
20+
sub_environment: int-blue

.github/workflows/deploy-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
run: make apply apigee_environment=${{ inputs.apigee_environment }} environment=${{ inputs.environment }} sub_environment=${{ inputs.sub_environment }}
8080
# TODO - use a saved plan from the plan step
8181
e2e-tests:
82-
if: ${{ vars.RUN_E2E == 'true' && inputs.environment == vars.ACTIVE_ENVIRONMENT }}
82+
if: ${{ vars.RUN_E2E == 'true' && inputs.sub_environment == vars.ACTIVE_ENVIRONMENT }}
8383
needs: terraform-apply
8484
runs-on: ubuntu-latest
8585
permissions:

0 commit comments

Comments
 (0)