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

This commit is contained in:
Pasha Sviderski committed 2025-11-07 15:38:52 +10:00
1 parent 89db50e8df
commit 9770151583
2 files changed
+6 -10

No files matched your search

+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)