Skip to content

Commit 4bb4a69

Browse files
authored
Merge pull request #390 from NHSDigital/feature/hotfix-merge-to-main
Feature/hotfix merge to main
2 parents 8cb7cb6 + 72d5db9 commit 4bb4a69

File tree

5 files changed

+25
-7
lines changed

5 files changed

+25
-7
lines changed

.github/workflows/base-deploy.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,25 @@ jobs:
109109
ref: ${{ needs.metadata.outputs.ref }}
110110
fetch-depth: 0
111111

112+
- name: "Setup Terraform"
113+
uses: hashicorp/setup-terraform@v3
114+
with:
115+
terraform_version: ${{ needs.metadata.outputs.terraform_version }}
116+
117+
- name: "Install Poetry"
118+
run: |
119+
curl -sSL https://install.python-poetry.org | python3 -
120+
echo "$HOME/.local/bin" >> $GITHUB_PATH
121+
122+
- name: "Set up Python"
123+
uses: actions/setup-python@v5
124+
with:
125+
python-version: "3.13"
126+
cache: 'poetry'
127+
128+
- name: "Install dependencies"
129+
run: poetry install
130+
112131
- name: "Build lambda artefact"
113132
shell: bash
114133
run: |

.github/workflows/cicd-2-publish.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
steps:
3131
- name: "Checkout code"
3232
uses: actions/checkout@v5
33+
with:
34+
ref: ${{ github.ref_name }}
3335

3436
- name: "Set CI/CD variables"
3537
id: variables
@@ -70,6 +72,8 @@ jobs:
7072

7173
- name: "Checkout Repository"
7274
uses: actions/checkout@v5
75+
with:
76+
ref: ${{ github.ref_name }}
7377

7478
- name: "Build lambda artefact"
7579
run: |

.github/workflows/cicd-3-test-deploy.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ jobs:
1414
metadata:
1515
name: "Resolve metadata from triggering run"
1616
runs-on: ubuntu-latest
17-
if: >
18-
${{
19-
github.event.workflow_run.conclusion == 'success' &&
20-
github.event.workflow_run.head_branch == 'main'
21-
}}
17+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2218
outputs:
2319
terraform_version: ${{ steps.vars.outputs.terraform_version }}
2420
tag: ${{ steps.tag.outputs.name }}

infrastructure/stacks/api-layer/iam_policies.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ data "aws_iam_policy_document" "s3_audit_kms_key_policy" {
352352
actions = ["kms:*"]
353353
resources = ["*"]
354354
}
355-
356355
# Allow Lambda, Firehose, and external write roles to use the KMS key
357356
statement {
358357
sid = "AllowAuditKeyAccess"

infrastructure/stacks/api-layer/locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ locals {
22
stack_name = "api-layer"
33

44
api_subdomain = var.environment
5-
api_domain_name = "eligibility-signposting-api.nhs.uk"
5+
api_domain_name = var.environment == "prod" ? "eligibility-signposting-api.national.nhs.uk" : "eligibility-signposting-api.nhs.uk"
66

77
# PEM file for certificate
88
pem_file_content = join("\n", [

0 commit comments

Comments
 (0)