|
5 | 5 | "fmt" |
6 | 6 | "os" |
7 | 7 |
|
8 | | - "github.com/sirupsen/logrus" |
9 | 8 | "github.com/skevetter/devpod/cmd/flags" |
10 | 9 | "github.com/skevetter/devpod/pkg/agent" |
11 | 10 | provider2 "github.com/skevetter/devpod/pkg/provider" |
@@ -57,7 +56,12 @@ func (cmd *BuildCmd) Run(ctx context.Context) error { |
57 | 56 | // initialize the workspace |
58 | 57 | cancelCtx, cancel := context.WithCancel(ctx) |
59 | 58 | defer cancel() |
60 | | - _, logger, credentialsDir, err := initWorkspace(cancelCtx, cancel, workspaceInfo, cmd.Debug, false) |
| 59 | + _, logger, credentialsDir, err := initWorkspace(initWorkspaceParams{ |
| 60 | + ctx: cancelCtx, |
| 61 | + workspaceInfo: workspaceInfo, |
| 62 | + debug: cmd.Debug, |
| 63 | + shouldInstallDaemon: false, |
| 64 | + }) |
61 | 65 | if err != nil { |
62 | 66 | return err |
63 | 67 | } else if credentialsDir != "" { |
@@ -93,15 +97,9 @@ func (cmd *BuildCmd) Run(ctx context.Context) error { |
93 | 97 | } |
94 | 98 |
|
95 | 99 | if workspaceInfo.CLIOptions.SkipPush { |
96 | | - logger.WithFields(logrus.Fields{ |
97 | | - "imageName": imageName, |
98 | | - }) |
99 | | - logger.Donef("done building image") |
| 100 | + logger.Donef("done building image %s", imageName) |
100 | 101 | } else { |
101 | | - logger.WithFields(logrus.Fields{ |
102 | | - "imageName": imageName, |
103 | | - }) |
104 | | - logger.Donef("done building and pushing image") |
| 102 | + logger.Donef("done building and pushing image %s", imageName) |
105 | 103 | } |
106 | 104 | } |
107 | 105 |
|
|
0 commit comments