Skip to content

Commit ba9cf32

Browse files
committed
Change back to apply.
1 parent 17010c0 commit ba9cf32

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/deploy-template.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
- name: Terraform Plan
4747
working-directory: ${{ vars.TERRAFORM_DIR_PATH }}
4848
run: make plan apigee_environment=${{ inputs.apigee_environment }} environment=${{ inputs.environment }} sub_environment=${{ inputs.sub_environment }}
49+
# TODO - save the plan and use it in the apply step
4950
terraform-apply:
5051
if: ${{ vars.SKIP_APPLY != 'true' }}
5152
needs: terraform-plan
@@ -75,7 +76,8 @@ jobs:
7576

7677
- name: Terraform Apply
7778
working-directory: ${{ vars.TERRAFORM_DIR_PATH }}
78-
run: make plan apigee_environment=${{ inputs.apigee_environment }} environment=${{ inputs.environment }} sub_environment=${{ inputs.sub_environment }}
79+
run: make apply apigee_environment=${{ inputs.apigee_environment }} environment=${{ inputs.environment }} sub_environment=${{ inputs.sub_environment }}
80+
# TODO - use a saved plan from the plan step
7981
e2e-tests:
8082
if: ${{ vars.RUN_E2E == 'true' && inputs.environment == vars.ACTIVE_ENVIRONMENT }}
8183
needs: terraform-apply
@@ -155,6 +157,6 @@ jobs:
155157
APIGEE_USERNAME: [email protected]
156158
run: |
157159
export APIGEE_ENVIRONMENT=internal-dev
158-
export PROXY_NAME=immunisation-fhir-api-int-${{ inputs.environment }}
159-
export SERVICE_BASE_PATH=immunisation-fhir-api/FHIR/R4-int-${{ inputs.environment }}
160+
export PROXY_NAME=immunisation-fhir-api-${{ inputs.sub_environment }}
161+
export SERVICE_BASE_PATH=immunisation-fhir-api/FHIR/R4-${{ inputs.sub_environment }}
160162
make run-immunization

0 commit comments

Comments
 (0)