mirror of
https://github.com/drone-plugins/drone-docker.git
synced 2026-06-04 10:15:30 +08:00
feat: [CI-18951]: added a log when harness fallback is used
This commit is contained in:
@@ -612,7 +612,11 @@ func getProxyValue(key string) string {
|
||||
return value
|
||||
}
|
||||
|
||||
return os.Getenv("HARNESS_" + strings.ToUpper(key))
|
||||
harnessValue := os.Getenv("HARNESS_" + strings.ToUpper(key))
|
||||
if len(harnessValue) > 0 {
|
||||
fmt.Printf("Using HARNESS_%s as proxy value for %s\n", strings.ToUpper(key), key)
|
||||
}
|
||||
return harnessValue
|
||||
}
|
||||
|
||||
// helper function that looks to see if a proxy value was set in the build args.
|
||||
|
||||
Reference in New Issue
Block a user