File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ var runCmd = &cobra.Command{
59
59
appName , _ := cmd .Flags ().GetString (AppName )
60
60
logLevel , _ := cmd .Flags ().GetString (LogLevel )
61
61
dryRun , _ := cmd .Flags ().GetBool (DryRun )
62
+ useSSHPrivateKeyAsInline , _ := cmd .Flags ().GetBool (UseSSHPrivateKeyAsInline )
62
63
helmKVs , _ := cmd .Flags ().GetStringToString (HelmKeyValues )
63
64
64
65
if err := log .SetLogLevel (logLevel ); err != nil {
@@ -86,10 +87,11 @@ var runCmd = &cobra.Command{
86
87
}
87
88
88
89
gitCredentials := & git.Credentials {
89
- Username : gitUser ,
90
- Email : gitEmail ,
91
- Password : gitPass ,
92
- SSHPrivKey : sshKey ,
90
+ Username : gitUser ,
91
+ Email : gitEmail ,
92
+ Password : gitPass ,
93
+ SSHPrivKey : sshKey ,
94
+ SSHPrivKeyFileInline : useSSHPrivateKeyAsInline ,
93
95
}
94
96
95
97
gitConf := & git.Conf {
@@ -119,6 +121,7 @@ var runCmd = &cobra.Command{
119
121
120
122
if err = runImageUpdater (cfg ); err != nil {
121
123
logCtx .Errorf ("Error trying to update the %s application: %v" , appName , err )
124
+ os .Exit (1 )
122
125
}
123
126
},
124
127
}
You can’t perform that action at this time.
0 commit comments