fix: 'uc deploy' push image to all machines if x-machines is not specified

This commit is contained in:
Pasha Sviderski
2025-11-07 15:38:52 +10:00
parent 89db50e8df
commit 9770151583
2 changed files with 6 additions and 10 deletions
+3 -3
View File
@@ -127,9 +127,9 @@ func runDeploy(ctx context.Context, uncli *cli.CLI, opts deployOptions) error {
var pushOpts client.PushImageOptions
if machines, ok := s.Extensions[compose.MachinesExtensionKey].(compose.MachinesSource); ok {
pushOpts.Machines = machines
if len(machines) == 0 {
pushOpts.AllMachines = true
}
}
if len(pushOpts.Machines) == 0 {
pushOpts.AllMachines = true
}
boldStyle := lipgloss.NewStyle().Bold(true)