From 4d4b89dc3521ff08c2bf07ef2c9fc2b9dfaabedd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Gustav=20Str=C3=A5b=C3=B8?= Date: Thu, 18 Jan 2024 11:06:19 +0100 Subject: [PATCH] add environment flag to deploy pipeline job --- cmd/createDeployPipelineJob.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/createDeployPipelineJob.go b/cmd/createDeployPipelineJob.go index 6f985c8..f54e089 100644 --- a/cmd/createDeployPipelineJob.go +++ b/cmd/createDeployPipelineJob.go @@ -127,6 +127,7 @@ func validateCommitID(commitID string) error { func init() { createJobCmd.AddCommand(createDeployPipelineJobCmd) createDeployPipelineJobCmd.Flags().StringP(flagnames.Application, "a", "", "Name of the application to deploy") + createDeployPipelineJobCmd.Flags().StringP(flagnames.Environment, "e", "", "Target environment to deploy in ('prod', 'dev', 'playground')") createDeployPipelineJobCmd.Flags().StringP(flagnames.User, "u", "", "The user who triggered the deploy") createDeployPipelineJobCmd.Flags().StringToStringP(flagnames.ImageTagName, "t", map[string]string{}, "Image tag name for a component: component-name=tag-name. Multiple pairs can be specified.") createDeployPipelineJobCmd.Flags().StringP(flagnames.CommitID, "i", "", "An optional 40 character commit id to tag the new pipeline job")