diff --git a/dist/platforms/windows/entrypoint.ps1 b/dist/platforms/windows/entrypoint.ps1 index c8dc770b..40333f86 100644 --- a/dist/platforms/windows/entrypoint.ps1 +++ b/dist/platforms/windows/entrypoint.ps1 @@ -5,7 +5,7 @@ if (Test-Path "C:\githubhome\.upmconfig.toml") { Write-Host "Copying .upmconfig.toml to C:\Users\runneradmin" Copy-Item -Path "C:\githubhome\.upmconfig.toml" -Destination "C:\Users\runneradmin\" -Force } else { - Write-Host "No .upmconfig.toml found at C:\githuhHome" + Write-Host "No .upmconfig.toml found at C:\githubhome" } # Import any necessary registry keys, ie: location of windows 10 sdk diff --git a/src/model/docker.ts b/src/model/docker.ts index 8820fbbe..4a451075 100644 --- a/src/model/docker.ts +++ b/src/model/docker.ts @@ -100,10 +100,13 @@ class Docker { dockerIsolationMode, } = parameters; + // 🔥 Add log for runnerTempPath + console.log(`🛠️ [DockerCommand] runnerTempPath = ${runnerTempPath}`); + const githubHome = path.join(runnerTempPath, '_github_home'); if (!existsSync(githubHome)) mkdirSync(githubHome); - return `docker run \ + const dockerCommand = `docker run \ --workdir c:${dockerWorkspacePath} \ --rm \ ${ImageEnvironmentFactory.getEnvVarString(parameters)} \ @@ -125,7 +128,12 @@ class Docker { --isolation=${dockerIsolationMode} \ ${image} \ powershell c:/steps/entrypoint.ps1`; - } + + // 🔥 Add log for final dockerCommand + console.log('🛠️ [DockerCommand] Final Windows Docker command:'); + console.log(dockerCommand); + + return dockerCommand; } export default Docker;