File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ SAMPLE_IMAGES_PATH=${BASE_PATH}/current/sample_images"
106106 --arg pyver " $PYTHON_VERSION " \
107107 --arg envb64 " $ENV_CONTENT_B64 " \
108108 --arg token " $GITHUB_TOKEN " \
109+ --arg env " $ENVIRONMENT " \
109110 ' {
110111 location: $loc,
111112 properties: {
@@ -114,7 +115,8 @@ SAMPLE_IMAGES_PATH=${BASE_PATH}/current/sample_images"
114115 { name: "ReleaseTag", value: $tag },
115116 { name: "PythonVersion", value: $pyver },
116117 { name: "EnvContentB64", value: $envb64 },
117- { name: "GitHubToken", value: $token }
118+ { name: "GitHubToken", value: $token },
119+ { name: "Environment", value: $env }
118120 ],
119121 runAsSystem: true,
120122 timeoutInSeconds: 1800
Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ param(
4343 [string ]$GitHubToken ,
4444
4545 [Parameter ()]
46- [string ]$EnvContentB64 = " "
46+ [string ]$EnvContentB64 = " " ,
47+
48+ [Parameter ()]
49+ [string ]$Environment = " prod"
4750)
4851
4952Set-StrictMode - Version Latest
@@ -335,9 +338,11 @@ $services = @(
335338 @ { Name = " Gateway-Relay" ; Script = " relay_listener.py" },
336339 @ { Name = " Gateway-PACS" ; Script = " pacs_main.py" },
337340 @ { Name = " Gateway-MWL" ; Script = " mwl_main.py" },
338- @ { Name = " Gateway-Upload" ; Script = " upload_main.py" },
339- @ { Name = " Gateway-Emulator" ; Script = " modality_emulator.py" }
341+ @ { Name = " Gateway-Upload" ; Script = " upload_main.py" }
340342)
343+ if (($Environment -ne " prod" ) -and ($Environment -ne " preprod" )) {
344+ $services += @ { Name = " Gateway-Emulator" ; Script = " modality_emulator.py" }
345+ }
341346
342347# -- Extraction ---------------------------------------------------------------
343348
You can’t perform that action at this time.
0 commit comments