(feat) publish docker data to create drone card (#347)

* plugin logic to write card data to publish drone card
This commit is contained in:
Eoin McAfee
2022-01-13 12:14:53 +00:00
committed by GitHub
parent 3593c4165c
commit 246dfb3c0e
7 changed files with 244 additions and 10 deletions

View File

@@ -249,6 +249,11 @@ func main() {
Usage: "additional host:IP mapping",
EnvVar: "PLUGIN_ADD_HOST",
},
cli.StringFlag{
Name: "drone-card-path",
Usage: "card path location to write to",
EnvVar: "DRONE_CARD_PATH",
},
}
if err := app.Run(os.Args); err != nil {
@@ -267,6 +272,7 @@ func run(c *cli.Context) error {
Email: c.String("docker.email"),
Config: c.String("docker.config"),
},
CardPath: c.String("drone-card-path"),
Build: docker.Build{
Remote: c.String("remote.url"),
Name: c.String("commit.sha"),