@@ -92,6 +92,14 @@ while [[ $# -gt 0 ]]; do
9292 apimEnvironment=" $2 "
9393 shift 2
9494 ;;
95+ --boundedContext) # Bounded context (optional)
96+ boundedContext=" $2 "
97+ shift 2
98+ ;;
99+ --targetDomain) # Target domain (optional)
100+ targetDomain=" $2 "
101+ shift 2
102+ ;;
95103 * )
96104 echo " [ERROR] Unknown argument: $1 "
97105 exit 1
@@ -125,6 +133,14 @@ if [[ -z "$apimEnvironment" ]]; then
125133 apimEnvironment=" "
126134fi
127135
136+ if [[ -z " $boundedContext " ]]; then
137+ boundedContext=" "
138+ fi
139+
140+ if [[ -z " $targetDomain " ]]; then
141+ targetDomain=" "
142+ fi
143+
128144echo " ==================== Workflow Dispatch Parameters ===================="
129145echo " infraRepoName: $infraRepoName "
130146echo " releaseVersion: $releaseVersion "
@@ -141,6 +157,8 @@ echo " targetProject: $targetProject"
141157echo " runId: $runId "
142158echo " buildSandbox: $buildSandbox "
143159echo " apimEnvironment: $apimEnvironment "
160+ echo " boundedContext: $boundedContext "
161+ echo " targetDomain: $targetDomain "
144162
145163DISPATCH_EVENT=$( jq -ncM \
146164 --arg infraRepoName " $infraRepoName " \
@@ -157,6 +175,8 @@ DISPATCH_EVENT=$(jq -ncM \
157175 --arg runId " $runId " \
158176 --arg buildSandbox " $buildSandbox " \
159177 --arg apimEnvironment " $apimEnvironment " \
178+ --arg boundedContext " $boundedContext " \
179+ --arg targetDomain " $targetDomain " \
160180 ' {
161181 "ref": "' " $internalRef " ' ",
162182 "inputs": (
@@ -171,6 +191,8 @@ DISPATCH_EVENT=$(jq -ncM \
171191 (if $runId != "" then { "runId": $runId } else {} end) +
172192 (if $buildSandbox != "" then { "buildSandbox": $buildSandbox } else {} end) +
173193 (if $apimEnvironment != "" then { "apimEnvironment": $apimEnvironment } else {} end) +
194+ (if $boundedContext != "" then { "boundedContext": $boundedContext } else {} end) +
195+ (if $targetDomain != "" then { "targetDomain": $targetDomain } else {} end) +
174196 { "targetEnvironment": $targetEnvironment } +
175197 { "targetAccountGroup": $targetAccountGroup }
176198 )
0 commit comments