@@ -111,7 +111,7 @@ jobs:
111111 matrix :
112112 arch : [ x86_64 ]
113113 os : [ windows, linux ]
114- base-image : [debian-bullseye -slim, windowsservercore-ltsc2022, lts-nanoserver-ltsc2022 ]
114+ base-image : [bookworm -slim, windowsservercore-ltsc2022, lts-nanoserver-ltsc2022 ]
115115
116116 include :
117117 - os : windows
@@ -120,7 +120,7 @@ jobs:
120120 runner : ubuntu-latest
121121 exclude :
122122 - os : windows
123- base-image : debian-bullseye -slim
123+ base-image : bookworm -slim
124124 - os : linux
125125 base-image : windowsservercore-ltsc2022
126126 - os : linux
@@ -136,7 +136,7 @@ jobs:
136136 # # workflow_call: The same artifacts persist across the entire run, so the PowerShell/DevolutionsGateway directory will still exist from the CI workflow
137137 - name : Manage artifacts
138138 shell : pwsh
139- run : Remove-Item (Join-Path devolutions-gateway PowerShell DevolutionsGateway) -Recurse -ErrorAction Ignore
139+ run : Remove-Item -Path (Join-Path devolutions-gateway PowerShell DevolutionsGateway) -Recurse -ErrorAction Ignore
140140
141141 - name : Prepare artifacts
142142 id : prepare-artifacts
@@ -156,9 +156,16 @@ jobs:
156156 $TargetFileName = "devolutions-gateway"
157157 }
158158
159+ Write-Host "SourceFileName = $SourceFileName"
160+ Write-Host "TargetFileName = $TargetFileName"
161+
159162 $SourcePath = Get-ChildItem -Recurse -Filter $SourceFileName -File -Path devolutions-gateway
163+ Write-Host "SourcePath = $SourcePath"
164+
160165 $TargetPath = Join-Path $PkgDir $TargetFileName
161- Copy-Item $SourcePath $TargetPath
166+ Write-Host "TargetPath = $TargetPath"
167+
168+ Copy-Item -Path $SourcePath -Destination $TargetPath
162169
163170 if ($Env:RUNNER_OS -eq "Linux") {
164171 Invoke-Expression "chmod +x $TargetPath"
@@ -172,15 +179,15 @@ jobs:
172179
173180 $XmfSourcePath = Get-ChildItem -Recurse -Filter $XmfFileName -File -Path native-libs
174181 $XmfTargetPath = Join-Path $PkgDir $XmfFileName
175- Copy-Item $XmfSourcePath $XmfTargetPath
182+ Copy-Item -Path $XmfSourcePath -Destination $XmfTargetPath
176183
177184 $WebAppArchive = Get-ChildItem -Recurse -Filter "devolutions_gateway_webapp_*.tar.gz" | Select-Object -First 1
178185 $TargetPath = Join-Path $PkgDir "webapp" "client"
179186 New-Item -ItemType Directory -Path $TargetPath
180187 tar -xvzf $WebAppArchive.FullName -C $TargetPath --strip-components=1
181188
182189 $PowerShellArchive = Get-ChildItem -Recurse -Filter "DevolutionsGateway-ps-*.zip" | Select-Object -First 1
183- Expand-Archive $PowerShellArchive -DestinationPath "$PkgDir"
190+ Expand-Archive -Path $PowerShellArchive -DestinationPath "$PkgDir"
184191
185192 - name : Build container
186193 id : build-container
@@ -235,10 +242,10 @@ jobs:
235242 run : |
236243 # workflow_call: The same artifacts persist across the entire run, so the PowerShell/DevolutionsGateway directory will still exist from the CI workflow
237244 # FIXME: I suspect this line is no longer required.
238- Remove-Item (Join-Path devolutions-gateway PowerShell DevolutionsGateway) -Recurse -ErrorAction Ignore
245+ Remove-Item -Path (Join-Path devolutions-gateway PowerShell DevolutionsGateway) -Recurse -ErrorAction Ignore
239246
240247 # Devolutions Agent on Linux does not have any useful feature yet, so we filter out the Linux artifacts.
241- Remove-Item (Join-Path devolutions-agent linux) -Recurse -ErrorAction Ignore
248+ Remove-Item -Path (Join-Path devolutions-agent linux) -Recurse -ErrorAction Ignore
242249
243250 - name : Create GitHub release
244251 shell : pwsh
@@ -288,7 +295,7 @@ jobs:
288295 # # workflow_call: The same artifacts persist across the entire run, so the PowerShell/DevolutionsGateway directory will still exist from the CI workflow
289296 - name : Manage artifacts
290297 shell : pwsh
291- run : Remove-Item (Join-Path PowerShell DevolutionsGateway) -Recurse -ErrorAction Ignore
298+ run : Remove-Item -Path (Join-Path PowerShell DevolutionsGateway) -Recurse -ErrorAction Ignore
292299
293300 - name : Publish PowerShell module
294301 shell : pwsh
0 commit comments