mirror of
https://github.com/ipedrazas/drone-helm.git
synced 2026-06-14 05:12:51 +08:00
support chart version with "--version" flag
This commit is contained in:
@@ -35,9 +35,14 @@ func main() {
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "chart",
|
||||
Usage: "Kubernetes helm release",
|
||||
Usage: "Kubernetes helm chart name",
|
||||
EnvVar: "PLUGIN_CHART,CHART",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "version",
|
||||
Usage: "specify the exact chart version to use. If this is not specified, the latest version is used",
|
||||
EnvVar: "PLUGIN_VERSION,VERSION",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "values",
|
||||
Usage: "Kubernetes helm release",
|
||||
@@ -134,6 +139,7 @@ func run(c *cli.Context) error {
|
||||
ValuesFiles: c.String("values_files"),
|
||||
Release: c.String("release"),
|
||||
Chart: c.String("chart"),
|
||||
Version: c.String("version"),
|
||||
Debug: c.Bool("debug"),
|
||||
DryRun: c.Bool("dry-run"),
|
||||
Secrets: c.StringSlice("secrets"),
|
||||
|
||||
Reference in New Issue
Block a user