Skip to content

Commit 0971bb0

Browse files
committed
Fix pipeline and adjust Azure templates
1 parent 9d2ef83 commit 0971bb0

File tree

6 files changed

+33
-105
lines changed

6 files changed

+33
-105
lines changed

.github/workflows/continuous-deployment.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,34 @@ on:
66
- master
77

88
jobs:
9-
deploy_all:
9+
deploy-internal-dev:
10+
uses: ./.github/workflows/deploy-backend.yml
11+
with:
12+
apigee_environment: internal-dev
13+
create_mns_subscription: true
14+
environment: dev
15+
sub_environment: internal-dev
16+
17+
deploy-internal-dev-sandbox:
18+
uses: ./.github/workflows/deploy-backend.yml
19+
with:
20+
apigee_environment: internal-dev-sandbox
21+
environment: dev
22+
sub_environment: internal-dev-sandbox
23+
24+
deploy-sandbox:
25+
needs: [deploy-internal-dev-sandbox]
26+
uses: ./.github/workflows/deploy-backend.yml
27+
with:
28+
apigee_environment: sandbox
29+
environment: dev
30+
sub_environment: sandbox
31+
32+
deploy-higher-dev-envs:
33+
needs: [deploy-internal-dev]
1034
strategy:
1135
matrix:
12-
sub_environment_name:
13-
[internal-dev, internal-dev-sandbox, sandbox, ref, int]
36+
sub_environment_name: [ref, int]
1437
uses: ./.github/workflows/deploy-backend.yml
1538
with:
1639
apigee_environment: ${{ matrix.sub_environment_name }}

.github/workflows/deploy-backend.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ on:
4646

4747
env: # Sonarcloud - do not allow direct usage of untrusted data
4848
APIGEE_ENVIRONMENT: ${{ inputs.apigee_environment }}
49-
BACKEND_REQUIRED: ${{ !(inputs.apigee_environment == 'internal-dev-sandbox' || inputs.apigee_environment == 'sandbox') }}
5049
ENVIRONMENT: ${{ inputs.environment }}
5150
SUB_ENVIRONMENT: ${{ inputs.sub_environment }}
5251

@@ -56,7 +55,7 @@ permissions:
5655

5756
jobs:
5857
terraform-plan:
59-
if: ${{ env.BACKEND_REQUIRED == 'true' }}
58+
if: ${{ !(inputs.apigee_environment == 'internal-dev-sandbox' || inputs.apigee_environment == 'sandbox') }}
6059
runs-on: ubuntu-latest
6160
environment:
6261
name: ${{ inputs.environment }}
@@ -90,7 +89,7 @@ jobs:
9089
path: terraform/tfplan
9190

9291
terraform-apply:
93-
if: ${{ env.BACKEND_REQUIRED == 'true' }}
92+
if: ${{ !(inputs.apigee_environment == 'internal-dev-sandbox' || inputs.apigee_environment == 'sandbox') }}
9493
needs: terraform-plan
9594
runs-on: ubuntu-latest
9695
environment:

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ build-proxy:
3636
scripts/build_proxy.sh
3737

3838
#Files to loop over in release
39-
# VED-811: remove everything except for proxy related files as we move to Github Actions for backend deployment
40-
_dist_include="poetry.toml Makefile build/. specification sandbox scripts e2e"
39+
_dist_include="poetry.toml Makefile build/. specification sandbox scripts"
4140

4241
#Create /dist/ sub-directory and copy files into directory
4342
#Ensure full dir structure is preserved for Lambdas

azure/azure-pr-pipeline.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,3 @@ extends:
4040
proxy_path: sandbox
4141
jinja_templates:
4242
DOMAIN_ENDPOINT: just-dummy-value-for-successful-build
43-
post_deploy:
44-
- template: ./templates/sandbox-post-deploy.yml

azure/azure-release-pipeline.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,19 @@ extends:
3838
proxy_path: sandbox
3939
jinja_templates:
4040
DOMAIN_ENDPOINT: just-dummy-value-for-successful-build
41-
post_deploy:
42-
- template: ./templates/sandbox-post-deploy.yml
4341
- environment: sandbox
4442
proxy_path: sandbox
4543
jinja_templates:
4644
DOMAIN_ENDPOINT: just-dummy-value-for-successful-build
4745
depends_on:
4846
- internal_dev_sandbox
4947
- environment: ref
48+
depends_on:
49+
- internal_dev
5050
jinja_templates:
5151
DOMAIN_ENDPOINT: https://ref.imms.dev.vds.platform.nhs.uk
5252
- environment: int
53+
depends_on:
54+
- internal_dev
5355
jinja_templates:
5456
DOMAIN_ENDPOINT: https://int.imms.dev.vds.platform.nhs.uk

azure/templates/sandbox-post-deploy.yml

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)