(DRON-232) enable build-kit for secrets consumption

This commit is contained in:
TP Honey
2022-02-11 10:49:42 +00:00
parent ad28b4d0f6
commit 05357ea390
6 changed files with 91 additions and 50 deletions

View File

@@ -249,6 +249,11 @@ func main() {
Usage: "additional host:IP mapping",
EnvVar: "PLUGIN_ADD_HOST",
},
cli.StringFlag{
Name: "secret",
Usage: "secret key value pair eg id=MYSECRET",
EnvVar: "PLUGIN_SECRET",
},
cli.StringFlag{
Name: "drone-card-path",
Usage: "card path location to write to",
@@ -292,6 +297,7 @@ func run(c *cli.Context) error {
AutoLabel: c.BoolT("auto-label"),
Link: c.String("link"),
NoCache: c.Bool("no-cache"),
Secret: c.String("secret"),
AddHost: c.StringSlice("add-host"),
Quiet: c.Bool("quiet"),
},