also remove from windows

This commit is contained in:
pat-s 2024-10-01 21:57:32 +02:00
parent 666f8563df
commit 21ba0910a9
No known key found for this signature in database
GPG key ID: 3C6318841EF78925
2 changed files with 1 additions and 1 deletions

View file

@ -22,7 +22,6 @@ func GenerateContainerConf(commands []string, goos string) (env map[string]strin
env = make(map[string]string)
if goos == "windows" {
env["CI_SCRIPT"] = base64.StdEncoding.EncodeToString([]byte(generateScriptWindows(commands)))
env["HOME"] = "c:\\root"
env["SHELL"] = "powershell.exe"
// cspell:disable-next-line
entry = []string{"powershell", "-noprofile", "-noninteractive", "-command", "[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Env:CI_SCRIPT)) | iex"}

View file

@ -53,6 +53,7 @@ fi
unset CI_NETRC_USERNAME
unset CI_NETRC_PASSWORD
unset CI_SCRIPT
chown -R $(whoami) /woodpecker
`
// traceScript is a helper script that is added to the step script