Skip to content

Commit 876abac

Browse files
committed
Initial refactor for PR pipeline
1 parent 0aa9012 commit 876abac

File tree

7 files changed

+117
-262
lines changed

7 files changed

+117
-262
lines changed

.github/workflows/deploy-backend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ on:
3232
type: boolean
3333
default: true
3434
environment:
35-
type: string
35+
type: choice
3636
description: Select the backend environment
3737
options:
3838
- dev
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: PR Deploy and Test
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
deploy-pr-env:
9+
uses: ./.github/workflows/deploy-backend.yml
10+
with:
11+
apigee_environment: internal-dev
12+
create_mns_subscription: true
13+
environment: dev
14+
sub_environment: pr-${{github.event.pull_request.number}}

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,14 @@ build-proxy:
4242

4343
#Files to loop over in release
4444
# VED-811: remove everything except for proxy related files as we move to Github Actions for backend deployment
45-
_dist_include="pytest.ini poetry.lock poetry.toml pyproject.toml Makefile build/. specification sandbox terraform scripts"
45+
_dist_include="pytest.ini poetry.lock poetry.toml pyproject.toml Makefile build/. specification sandbox scripts"
4646

4747

4848
#Create /dist/ sub-directory and copy files into directory
4949
#Ensure full dir structure is preserved for Lambdas
5050
release: clean publish build-proxy
5151
mkdir -p dist
5252
for f in $(_dist_include); do cp -r $$f dist; done
53-
for f in $(PYTHON_PROJECT_DIRS); do cp --parents -r $$f dist; done
5453
cp ecs-proxies-deploy.yml dist/ecs-deploy-sandbox.yml
5554
cp ecs-proxies-deploy.yml dist/ecs-deploy-internal-qa-sandbox.yml
5655
cp ecs-proxies-deploy.yml dist/ecs-deploy-internal-dev-sandbox.yml

azure/azure-pr-pipeline.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,9 @@ extends:
3636
- environment: internal-dev
3737
jinja_templates:
3838
DOMAIN_ENDPOINT: https://pr-${{ variables.pr_number }}.imms.dev.vds.platform.nhs.uk
39-
post_deploy:
40-
- template: ./templates/post-deploy.yml
41-
parameters:
42-
aws_account_type: 'dev'
4339
- environment: internal-dev-sandbox
4440
proxy_path: sandbox
4541
jinja_templates:
4642
DOMAIN_ENDPOINT: just-dummy-value-for-successful-build
4743
post_deploy:
48-
- template: ./templates/post-deploy.yml
49-
parameters:
50-
aws_account_type: 'dev'
51-
subscribe_to_mns: false
44+
- template: ./templates/sandbox-post-deploy.yml

azure/azure-release-pipeline.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,12 @@ extends:
3434
- environment: internal-dev
3535
jinja_templates:
3636
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'
4137
- environment: internal-dev-sandbox
4238
proxy_path: sandbox
4339
jinja_templates:
4440
DOMAIN_ENDPOINT: just-dummy-value-for-successful-build
4541
post_deploy:
46-
- template: ./templates/post-deploy.yml
47-
parameters:
48-
aws_account_type: 'dev'
49-
subscribe_to_mns: false
42+
- template: ./templates/sandbox-post-deploy.yml
5043
- environment: sandbox
5144
proxy_path: sandbox
5245
jinja_templates:
@@ -59,23 +52,14 @@ extends:
5952
- internal_dev_sandbox
6053
jinja_templates:
6154
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'
6655
- environment: int
6756
depends_on:
6857
- internal_dev
6958
jinja_templates:
7059
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'
7560
- environment: prod
7661
depends_on:
7762
- int
7863
- ref
7964
jinja_templates:
8065
DOMAIN_ENDPOINT: https://blue.imms.prod.vds.platform.nhs.uk
81-

azure/templates/post-deploy.yml

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

0 commit comments

Comments
 (0)