Skip to content

Commit e485203

Browse files
authored
Merge pull request #4709 from nhsuk/next
Version 4.3.0
2 parents 988162c + 5bb9058 commit e485203

141 files changed

Lines changed: 2778 additions & 694 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/continuous-deployment.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,23 @@ jobs:
2121
with:
2222
environment: ${{ matrix.environment }}
2323
server_types: all
24+
slack-notification:
25+
needs: [deploy, test]
26+
runs-on: ubuntu-latest
27+
permissions: {}
28+
if: ${{ !cancelled() }}
29+
steps:
30+
- name: Send Slack notification
31+
if: needs.test.result == 'failure' || needs.deploy.result == 'failure'
32+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a
33+
with:
34+
webhook: ${{ secrets.SLACK_MAVIS_ALERTS_WEBHOOK_URL }}
35+
webhook-type: incoming-webhook
36+
payload: |
37+
text: ":rotating_light: Continuous Deployment failed :rotating_light:"
38+
blocks:
39+
- type: "section"
40+
text:
41+
type: "mrkdwn"
42+
text: ":rotating_light: *Continuous Deployment failed* :rotating_light:\n\n \
43+
<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow run>"

.github/workflows/data-replication-pipeline.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
- name: Install terraform
109109
uses: hashicorp/setup-terraform@v3
110110
with:
111-
terraform_version: 1.11.4
111+
terraform_version: 1.13.3
112112
outputs:
113113
SNAPSHOT_ARN: ${{ steps.get-latest-snapshot.outputs.SNAPSHOT_ARN }}
114114

@@ -167,7 +167,7 @@ jobs:
167167
- name: Install terraform
168168
uses: hashicorp/setup-terraform@v3
169169
with:
170-
terraform_version: 1.11.4
170+
terraform_version: 1.13.3
171171
- name: Get db secret arn
172172
id: get-db-secret-arn
173173
working-directory: terraform/app
@@ -201,6 +201,25 @@ jobs:
201201
with:
202202
name: tfplan_infrastructure-${{ inputs.environment }}
203203
path: ${{ runner.temp }}/tfplan
204+
- name: Notify pending approval
205+
if: inputs.environment == 'production'
206+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a
207+
with:
208+
webhook: ${{ secrets.SLACK_MAVIS_TECH_WEBHOOK_URL }}
209+
webhook-type: incoming-webhook
210+
payload: |
211+
text: ":hourglass: Approval required :hourglass:"
212+
blocks:
213+
- type: "section"
214+
text:
215+
type: "mrkdwn"
216+
text: "${{ github.workflow }} requires approval"
217+
- type: "section"
218+
fields:
219+
- type: "mrkdwn"
220+
text: "<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow run>"
221+
- type: "mrkdwn"
222+
text: "*Triggered by:*\n${{ github.actor }}"
204223
205224
apply:
206225
name: Terraform apply
@@ -226,7 +245,7 @@ jobs:
226245
- name: Install terraform
227246
uses: hashicorp/setup-terraform@v3
228247
with:
229-
terraform_version: 1.11.4
248+
terraform_version: 1.13.3
230249
- name: Apply the changes
231250
run: |
232251
set -e

.github/workflows/deploy-application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- name: Install terraform
6969
uses: hashicorp/setup-terraform@v3
7070
with:
71-
terraform_version: 1.11.4
71+
terraform_version: 1.13.3
7272
- name: Get terraform output
7373
id: terraform-output
7474
working-directory: terraform/app

.github/workflows/deploy-backup-infrastructure.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Install terraform
4444
uses: hashicorp/setup-terraform@v3
4545
with:
46-
terraform_version: 1.11.4
46+
terraform_version: 1.13.3
4747
- name: Terraform Plan
4848
id: plan
4949
env:
@@ -87,7 +87,7 @@ jobs:
8787
- name: Install terraform
8888
uses: hashicorp/setup-terraform@v3
8989
with:
90-
terraform_version: 1.11.4
90+
terraform_version: 1.13.3
9191
- name: Apply the changes
9292
env:
9393
PERSONAL_ACCESS_TOKEN: ${{ secrets.BACKUP_MODULES_ACCESS_TOKEN }}

.github/workflows/deploy-infrastructure.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
- name: Install terraform
7171
uses: hashicorp/setup-terraform@v3
7272
with:
73-
terraform_version: 1.11.4
73+
terraform_version: 1.13.3
7474
- name: Check if any deployments are running
7575
run: ../scripts/check-for-running-deployments.sh ${{ inputs.environment }}
7676
- name: Terraform Plan
@@ -118,7 +118,7 @@ jobs:
118118
- name: Install terraform
119119
uses: hashicorp/setup-terraform@v3
120120
with:
121-
terraform_version: 1.11.4
121+
terraform_version: 1.13.3
122122
- name: Apply the changes
123123
run: |
124124
set -e

.github/workflows/deploy-monitoring.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Install terraform
5454
uses: hashicorp/setup-terraform@v3
5555
with:
56-
terraform_version: 1.11.4
56+
terraform_version: 1.13.3
5757
- name: Terraform Plan
5858
id: plan
5959
run: |
@@ -110,7 +110,7 @@ jobs:
110110
- name: Install terraform
111111
uses: hashicorp/setup-terraform@v3
112112
with:
113-
terraform_version: 1.11.4
113+
terraform_version: 1.13.3
114114
- name: Apply AWS changes
115115
run: |
116116
set -e
@@ -140,7 +140,7 @@ jobs:
140140
- name: Install terraform
141141
uses: hashicorp/setup-terraform@v3
142142
with:
143-
terraform_version: 1.11.4
143+
terraform_version: 1.13.3
144144
- name: Install dependencies
145145
run: |
146146
sudo apt-get update

.github/workflows/destroy-infrastructure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Install terraform
4343
uses: hashicorp/setup-terraform@v3
4444
with:
45-
terraform_version: 1.11.4
45+
terraform_version: 1.13.3
4646
- name: Ensure DB cluster can be deleted
4747
run: |
4848
set -e

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,6 @@ jobs:
155155
- uses: actions/checkout@v5
156156
- uses: hashicorp/setup-terraform@v3
157157
with:
158-
terraform_version: 1.11.4
158+
terraform_version: 1.13.3
159159
- run: terraform init -backend=false
160160
- run: terraform validate

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby-3.4.3
1+
ruby-3.4.6

.tool-versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ nodejs 22.15.0
44
pkl 0.28.1
55
postgres 17.2
66
redis 8.2.1
7-
ruby 3.4.3
8-
terraform 1.11.4
7+
ruby 3.4.6
8+
terraform 1.13.3
99
tflint 0.55.1

0 commit comments

Comments
 (0)