Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 4030cf4

Browse files
committed
Testing default registry host value in pipeline
1 parent a0cf79c commit 4030cf4

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.azuredevops/pipelines/cd-infrastructure-dev-core.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ resources:
1414
- repository: dtos-devops-templates
1515
type: github
1616
name: NHSDigital/dtos-devops-templates
17-
ref: main
17+
ref: feat/dtoss-9326-trigger-cd-pipeline-with-commit
1818
endpoint: NHSDigital
1919

2020
parameters:
@@ -24,6 +24,7 @@ parameters:
2424
- name: registryHost
2525
type: string
2626

27+
2728
variables:
2829
- group: DEV_core_backend
2930
- group: DEV_audit_backend_remote_state
@@ -43,16 +44,15 @@ stages:
4344
condition: eq(variables['Build.Reason'], 'Manual')
4445
variables:
4546
tfVarsFile: environments/$(ENVIRONMENT).tfvars
47+
imageHash: ${{ parameters.imageHash }}
48+
registryHost: ${{ parameters.registryHost }}
4649
jobs:
4750
- job: init_and_plan
4851
displayName: Init, plan, store artifact
4952
steps:
5053
- checkout: self
5154
- checkout: dtos-devops-templates
5255
- template: .azuredevops/templates/steps/tf_plan.yaml@dtos-devops-templates
53-
parameters:
54-
imageHash: ${{ parameters.imageHash }}
55-
registryHost: ${{ parameters.registryHost }}
5656

5757
- stage: terraform_apply
5858
displayName: Terraform Apply

.github/workflows/cicd-1-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
build-image-stage: # Recommended maximum execution time is 3 minutes
104104
name: Image build stage
105105
needs: [metadata, commit-stage, test-stage]
106-
uses: NHSDigital/dtos-devops-templates/.github/workflows/stage-3-build.yaml@main
106+
uses: NHSDigital/dtos-devops-templates/.github/workflows/stage-3-build.yaml@feat/dtoss-9326-trigger-cd-pipeline-with-commit
107107
if: needs.metadata.outputs.does_pull_request_exist == 'true' || github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened'))
108108
with:
109109
docker_compose_file_csv_list: ./compose.yaml

src/ServiceLayer.API/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@
2727
.Build();
2828

2929
await host.RunAsync();
30+
31+
32+

0 commit comments

Comments
 (0)