You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-23 21:44:44 +02:00
local backend set home variable windows-equivalent too (#2323)
This commit is contained in:
@@ -14,7 +14,10 @@
|
||||
|
||||
package local
|
||||
|
||||
import "errors"
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// notAllowedEnvVarOverwrites are all env vars that can not be overwritten by step config
|
||||
var notAllowedEnvVarOverwrites = []string{
|
||||
@@ -36,3 +39,12 @@ machine %s
|
||||
login %s
|
||||
password %s
|
||||
`
|
||||
|
||||
func genNetRC(env map[string]string) string {
|
||||
return fmt.Sprintf(
|
||||
netrcFile,
|
||||
env["CI_NETRC_MACHINE"],
|
||||
env["CI_NETRC_USERNAME"],
|
||||
env["CI_NETRC_PASSWORD"],
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user