mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 08:56:29 +00:00
feat: remove debug log
This commit is contained in:
parent
4097e4dfde
commit
e491af6f9a
1 changed files with 3 additions and 8 deletions
|
@ -333,26 +333,21 @@ func execWithAxis(c *cli.Context, axis matrix.Axis) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(axis) != 0 {
|
if len(axis) != 0 {
|
||||||
fmt.Println("===============================================")
|
|
||||||
fmt.Println("Execute with matrix:")
|
|
||||||
for k, v := range axis {
|
for k, v := range axis {
|
||||||
fmt.Printf(" %s: %s\n", k, v)
|
|
||||||
environ[k] = v
|
environ[k] = v
|
||||||
}
|
}
|
||||||
fmt.Println("===============================================")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
drone_env := make(map[string]string)
|
droneEnv := make(map[string]string)
|
||||||
for _, env := range c.StringSlice("env") {
|
for _, env := range c.StringSlice("env") {
|
||||||
envs := strings.SplitN(env, "=", 2)
|
envs := strings.SplitN(env, "=", 2)
|
||||||
drone_env[envs[0]] = envs[1]
|
droneEnv[envs[0]] = envs[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
tmpl, err := envsubst.ParseFile(file)
|
tmpl, err := envsubst.ParseFile(file)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
confstr, err := tmpl.Execute(func(name string) string {
|
confstr, err := tmpl.Execute(func(name string) string {
|
||||||
return environ[name]
|
return environ[name]
|
||||||
})
|
})
|
||||||
|
@ -419,7 +414,7 @@ func execWithAxis(c *cli.Context, axis matrix.Axis) error {
|
||||||
),
|
),
|
||||||
compiler.WithMetadata(metadata),
|
compiler.WithMetadata(metadata),
|
||||||
compiler.WithSecret(secrets...),
|
compiler.WithSecret(secrets...),
|
||||||
compiler.WithEnviron(drone_env),
|
compiler.WithEnviron(droneEnv),
|
||||||
).Compile(conf)
|
).Compile(conf)
|
||||||
engine, err := docker.NewEnv()
|
engine, err := docker.NewEnv()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue