1
0
mirror of https://github.com/drone/drone-cli.git synced 2024-11-22 17:01:58 +01:00

Merge pull request #184 from tkushnir/add-missing-ctx-values

Add missing ctx values
This commit is contained in:
Eoin McAfee 2021-06-22 16:30:37 +01:00 committed by GitHub
commit 691e2de01e
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -111,6 +111,18 @@ var Command = cli.Command{
Name: "build.title",
Usage: "build title",
},
cli.StringFlag{
Name: "build.link",
Usage: "build link",
},
cli.StringFlag{
Name: "build.environment",
Usage: "build environment",
},
cli.BoolTFlag{
Name: "build.debug",
Usage: "debug build",
},
},
}
@ -159,6 +171,9 @@ func generate(c *cli.Context) error {
"commit": starlark.String(c.String("build.commit")),
"message": starlark.String(c.String("build.message")),
"title": starlark.String(c.String("build.title")),
"link": starlark.String(c.String("build.link")),
"environment": starlark.String(c.String("build.environment")),
"debug": starlark.Bool(c.Bool("build.debug")),
}
args := starlark.Tuple([]starlark.Value{