mirror of
https://github.com/ipedrazas/drone-helm.git
synced 2026-06-26 15:52:33 +08:00
envval envvarkey
This commit is contained in:
@@ -163,7 +163,8 @@ func replaceEnvvars(envvars [][]string, prefix string, s string) string {
|
||||
if prefix != "" {
|
||||
envval = os.Getenv(prefix + "_" + envvarKey)
|
||||
}
|
||||
|
||||
fmt.Println(envval)
|
||||
fmt.Println(envvarKey)
|
||||
if strings.Contains(s, envvarKey) {
|
||||
s = strings.Replace(s, envvarName, envval, -1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user