Skip to content

Commit b0691e4

Browse files
committed
New pipeline
1 parent 9eed7ce commit b0691e4

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
trigger:
17+
branches:
18+
exclude:
19+
- master
20+
- refs/heads/master
21+
- refs/tags/v*
22+
23+
pool:
24+
name: 'AWS-ECS'
25+
26+
variables:
27+
- template: project.yml
28+
29+
extends:
30+
template: azure/common/apigee-deployment.yml@common
31+
parameters:
32+
service_name: ${{ variables.service_name }}
33+
short_service_name: ${{ variables.short_service_name }}
34+
service_base_path: ${{ variables.service_base_path }}
35+
apigee_deployments:
36+
# To Do: this should be moved to release step. keeping it here for testing
37+
- environment: new-int
38+
jinja_templates:
39+
DOMAIN_ENDPOINT: https://green.imms.int.vds.platform.nhs.uk
40+
post_deploy:
41+
- template: ./templates/post-deploy.yml
42+
parameters:
43+
aws_account_type: 'dev'
44+
tf_dir: 'terraform_old'
45+

azure/templates/post-deploy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ parameters:
55
default: true
66
- name: 'aws_account_type'
77
type: string
8+
- name: tf_dir
9+
type: string
10+
default: "terraform"
811

912
steps:
1013
- ${{ if parameters.is_ptl }}:
@@ -58,7 +61,8 @@ steps:
5861
echo Apigee environment: $APIGEE_ENVIRONMENT
5962
echo pr_no: $pr_no
6063
61-
cd terraform
64+
echo "Moving to dir: ${{ parameters.tf_dir }}"
65+
cd ${{ parameters.tf_dir }}
6266
6367
make init
6468
make apply aws_account_no=${aws_account_no} environment=$workspace

0 commit comments

Comments
 (0)