@@ -281,7 +281,12 @@ jobs:
281281 TRANSPORT_MODE_SELECTION : ${{ secrets.TRANSPORT_MODE_SELECTION }}
282282 run : |
283283 .\.venv\Scripts\Activate.ps1
284- docker run --detach --name $env:GEO_CONT_NAME -e LICENSE_SERVER=$env:ANSRV_GEO_LICENSE_SERVER -p $env:PORT_MAPPING $env:FULL_IMAGE_NAME $env:TRANSPORT_MODE_SELECTION
284+ # Write command to file launch.txt for sanitizing purposes
285+ echo "docker run --detach --name $env:GEO_CONT_NAME -e LICENSE_SERVER=$env:ANSRV_GEO_LICENSE_SERVER -p $env:PORT_MAPPING $env:FULL_IMAGE_NAME $env:TRANSPORT_MODE_SELECTION" | Out-File -FilePath launch.txt -Append
286+ # Read the file and execute the command
287+ $command = Get-Content -Path launch.txt | Select-String -Pattern "docker run"
288+ Invoke-Expression $command.Line
289+ Start-Sleep -Seconds 10
285290 python -c "from ansys.geometry.core.connection.validate import validate; validate()"
286291
287292 - name : Restore images cache
@@ -850,7 +855,12 @@ jobs:
850855 PORT_MAPPING : " ${{ env.ANSRV_GEO_PORT }}:50051"
851856 run : |
852857 .\.venv\Scripts\Activate.ps1
853- docker run --detach --name $env:GEO_CONT_NAME -e LICENSE_SERVER=$env:ANSRV_GEO_LICENSE_SERVER -p $env:PORT_MAPPING ghcr.io/ansys/geometry:windows-tmp $env:TRANSPORT_MODE_SELECTION
858+ # Write command to file launch.txt for sanitizing purposes
859+ echo "docker run --detach --name $env:GEO_CONT_NAME -e LICENSE_SERVER=$env:ANSRV_GEO_LICENSE_SERVER -p $env:PORT_MAPPING ghcr.io/ansys/geometry:windows-tmp $env:TRANSPORT_MODE_SELECTION" | Out-File -FilePath launch.txt -Append
860+ # Read the file and execute the command
861+ $command = Get-Content -Path launch.txt | Select-String -Pattern "docker run"
862+ Invoke-Expression $command.Line
863+ Start-Sleep -Seconds 10
854864 python -c "from ansys.geometry.core.connection.validate import validate; validate()"
855865
856866 - name : Testing
0 commit comments