Skip to content

Commit d0da858

Browse files
committed
CCM-11938: try remote
1 parent 0737940 commit d0da858

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

.github/actions/build-proxies/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ inputs:
55
version:
66
description: "Version number"
77
required: true
8+
releaseVersion:
9+
description: "Release, tag, branch, or commit ID to be used for deployment"
10+
required: true
811
environment:
912
description: "Deployment environment"
1013
required: true
@@ -18,6 +21,10 @@ inputs:
1821
description: "Whether to build the sandbox OAS spec"
1922
required: false
2023
default: false
24+
targetComponent:
25+
description: "Name of the Component to deploy"
26+
required: true
27+
default: 'api'
2128

2229
runs:
2330
using: composite
@@ -104,6 +111,9 @@ runs:
104111
#Change this back to proxy-deploy.yaml after testing
105112
.github/scripts/dispatch_internal_repo_workflow.sh \
106113
--internalRef "feature/CCM-11938_workflow" \
114+
--infraRepoName "nhs-notify-supplier-api" \
115+
--releaseVersion "${{ inputs.releaseVersion }}" \
116+
--targetComponent "${{ inputs.targetComponent }}" \
107117
--targetWorkflow "dispatch-deploy-notify-account-provisioning.yaml" \
108118
--targetEnvironment "${{ inputs.environment }}" \
109119
--runId "${{ inputs.runId }}" \

.github/scripts/dispatch_internal_repo_workflow.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,6 @@ DISPATCH_EVENT=$(jq -ncM \
195195
(if $overrideProjectName != "" then { "overrideProjectName": $overrideProjectName } else {} end) +
196196
(if $overrideRoleName != "" then { "overrideRoleName": $overrideRoleName } else {} end) +
197197
(if $targetProject != "" then { "targetProject": $targetProject } else {} end) +
198-
(if $releaseVersion != "" then { "releaseVersion": $releaseVersion } else {} end) +
199-
(if $targetComponent != "" then { "targetComponent": $targetComponent } else {} end) +
200198
(if $overrides != "" then { "overrides": $overrides } else {} end) +
201199
(if $runId != "" then { "runId": $runId } else {} end) +
202200
(if $buildSandbox != "" then { "buildSandbox": $buildSandbox } else {} end) +
@@ -205,7 +203,11 @@ DISPATCH_EVENT=$(jq -ncM \
205203
(if $targetDomain != "" then { "targetDomain": $targetDomain } else {} end) +
206204
(if $version != "" then { "version": $version } else {} end) +
207205
(if $targetAccountGroup != "" then { "targetAccountGroup": $targetAccountGroup } else {} end) +
208-
{ "targetEnvironment": $targetEnvironment }
206+
{
207+
"releaseVersion": $releaseVersion,
208+
"targetEnvironment": $targetEnvironment,
209+
"targetComponent": $targetComponent,
210+
}
209211
)
210212
}')
211213

@@ -251,10 +253,12 @@ for _ in {1..18}; do
251253
workflow_run_url=$(echo "$response" | jq -r \
252254
--arg targetWorkflow "$targetWorkflow" \
253255
--arg targetEnvironment "$targetEnvironment" \
256+
--arg targetComponent "$targetComponent" \
254257
'.workflow_runs[]
255258
| select(.path == ".github/workflows/" + $targetWorkflow)
256259
| select(.name
257260
| contains($targetEnvironment)
261+
and contains($targetComponent)
258262
)
259263
| .url')
260264

.github/workflows/manual-proxy-environment-deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
apimEnv: "${{ env.APIM_ENV }}"
8181
runId: "${{ github.run_id }}"
8282
buildSandbox: false
83+
releaseVersion: ${{ github.ref_name }}
8384

8485
# - name: Set target and cert
8586
# shell: bash

.github/workflows/stage-3-build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ jobs:
106106
apimEnv: "internal-dev-sandbox"
107107
runId: "${{ github.run_id }}"
108108
buildSandbox: true
109+
releaseVersion: ${{ github.ref_name }}
109110

110111
# artefact-sandbox:
111112
# name: "Build sandbox"

0 commit comments

Comments
 (0)