We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88a186d commit 6c426d4Copy full SHA for 6c426d4
pkg/cli/image/set.go
@@ -57,7 +57,19 @@ func Set(ctx *context.Context) *cobra.Command {
57
defer logger.Debugf("END")
58
logger.StructFields(flags)
59
if flags.Force {
60
- logger.Debugf("run command with forcr")
+ logger.Debugf("run command with force")
61
+
62
+ if flags.Container == "" {
63
+ var depl, err = ctx.Client.GetDeployment(ctx.Namespace.ID, flags.Deployment)
64
+ if err != nil {
65
+ fmt.Println(err)
66
+ os.Exit(1)
67
+ }
68
+ if len(depl.Containers) == 1 {
69
+ flags.Container = depl.Containers[0].Name
70
71
72
73
var depl, image, err = buildImage()
74
if err != nil {
75
fmt.Println(err)
0 commit comments