Skip to content

Commit c71d6d7

Browse files
committed
VED-719: Add blue / green proxy release pipeline. (#850)
* VED-719: Add blue / green proxy release pipeline. * VED-719: Switch to using a parameter for blue / green. Add test deploy to ref. * VED-719: Fix validation errors. * VED-719: Remove pipeline trigger. Remove test ref deploy. * VED-719: Remove prod stage from automatic release pipeline.
1 parent c462491 commit c71d6d7

File tree

2 files changed

+84
-44
lines changed

2 files changed

+84
-44
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: "$(SourceBranchName)+$(BuildID)"
2+
3+
trigger: none
4+
pr: none
5+
6+
resources:
7+
repositories:
8+
- repository: common
9+
type: github
10+
name: NHSDigital/api-management-utils
11+
ref: refs/heads/edge
12+
endpoint: NHSDigital
13+
pipelines:
14+
- pipeline: build_pipeline
15+
source: "Immunisation-Fhir-Api-Build"
16+
17+
pool:
18+
name: 'AWS-ECS'
19+
20+
variables:
21+
- template: project.yml
22+
23+
parameters:
24+
- name: sub_environment
25+
displayName: Sub-Environment
26+
type: string
27+
default: blue
28+
values:
29+
- blue
30+
- green
31+
32+
extends:
33+
template: azure/common/apigee-deployment.yml@common
34+
parameters:
35+
service_name: ${{ variables.service_name }}
36+
short_service_name: ${{ variables.short_service_name }}
37+
service_base_path: ${{ variables.service_base_path }}
38+
prod_requires_approval: true
39+
prod_producer_approval: true
40+
apigee_deployments:
41+
- environment: prod
42+
depends_on: []
43+
jinja_templates:
44+
DOMAIN_ENDPOINT: https://${{ parameters.sub_environment }}.imms.prod.vds.platform.nhs.uk

azure/azure-release-pipeline.yml

Lines changed: 40 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -30,49 +30,45 @@ extends:
3030
service_name: ${{ variables.service_name }}
3131
short_service_name: ${{ variables.short_service_name }}
3232
service_base_path: ${{ variables.service_base_path }}
33-
prod_requires_approval: false
3433
apigee_deployments:
35-
# - environment: internal-dev
36-
# jinja_templates:
37-
# DOMAIN_ENDPOINT: https://internal-dev.imms.dev.vds.platform.nhs.uk
38-
# post_deploy:
39-
# - template: ./templates/post-deploy.yml
40-
# parameters:
41-
# aws_account_type: 'dev'
42-
# - environment: internal-dev-sandbox
43-
# proxy_path: sandbox
44-
# jinja_templates:
45-
# DOMAIN_ENDPOINT: just-dummy-value-for-successful-build
46-
# post_deploy:
47-
# - template: ./templates/post-deploy.yml
48-
# parameters:
49-
# aws_account_type: 'dev'
50-
# - environment: sandbox
51-
# proxy_path: sandbox
52-
# jinja_templates:
53-
# DOMAIN_ENDPOINT: just-dummy-value-for-successful-build
54-
# depends_on:
55-
# - internal_dev_sandbox
56-
# - environment: ref
57-
# depends_on:
58-
# - internal_dev
59-
# - internal_dev_sandbox
60-
# jinja_templates:
61-
# DOMAIN_ENDPOINT: https://ref.imms.dev.vds.platform.nhs.uk
62-
# post_deploy:
63-
# - template: ./templates/post-deploy.yml
64-
# parameters:
65-
# aws_account_type: 'dev'
66-
# - environment: int
67-
# depends_on:
68-
# - internal_dev
69-
# jinja_templates:
70-
# DOMAIN_ENDPOINT: https://int.imms.dev.vds.platform.nhs.uk
71-
# post_deploy:
72-
# - template: ./templates/post-deploy.yml
73-
# parameters:
74-
# aws_account_type: 'dev'
75-
- environment: prod
76-
depends_on: []
34+
- environment: internal-dev
7735
jinja_templates:
78-
DOMAIN_ENDPOINT: https://blue.imms.prod.vds.platform.nhs.uk
36+
DOMAIN_ENDPOINT: https://internal-dev.imms.dev.vds.platform.nhs.uk
37+
post_deploy:
38+
- template: ./templates/post-deploy.yml
39+
parameters:
40+
aws_account_type: 'dev'
41+
- environment: internal-dev-sandbox
42+
proxy_path: sandbox
43+
jinja_templates:
44+
DOMAIN_ENDPOINT: just-dummy-value-for-successful-build
45+
post_deploy:
46+
- template: ./templates/post-deploy.yml
47+
parameters:
48+
aws_account_type: 'dev'
49+
subscribe_to_mns: false
50+
- environment: sandbox
51+
proxy_path: sandbox
52+
jinja_templates:
53+
DOMAIN_ENDPOINT: just-dummy-value-for-successful-build
54+
depends_on:
55+
- internal_dev_sandbox
56+
- environment: ref
57+
depends_on:
58+
- internal_dev
59+
- internal_dev_sandbox
60+
jinja_templates:
61+
DOMAIN_ENDPOINT: https://ref.imms.dev.vds.platform.nhs.uk
62+
post_deploy:
63+
- template: ./templates/post-deploy.yml
64+
parameters:
65+
aws_account_type: 'dev'
66+
- environment: int
67+
depends_on:
68+
- internal_dev
69+
jinja_templates:
70+
DOMAIN_ENDPOINT: https://int.imms.dev.vds.platform.nhs.uk
71+
post_deploy:
72+
- template: ./templates/post-deploy.yml
73+
parameters:
74+
aws_account_type: 'dev'

0 commit comments

Comments
 (0)