Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 0e6bfe5

Browse files
author
Matthieu Nottale
committed
deploy: Add missing call to packager.Extract to handle packed app and '.'
Signed-off-by: Matthieu Nottale <[email protected]>
1 parent fb89420 commit 0e6bfe5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

renderer/deploy.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@ import (
99
"github.com/docker/cli/cli/command/stack/options"
1010
"github.com/docker/cli/cli/command/stack/swarm"
1111
cliflags "github.com/docker/cli/cli/flags"
12+
"github.com/docker/lunchbox/packager"
1213
"github.com/docker/lunchbox/utils"
1314
)
1415

1516
// Deploy deploys this app, merging in settings files, other compose files, end env
1617
func Deploy(appname string, composeFiles []string, settingsFile []string, env map[string]string,
1718
orchestrator string, kubeconfig string, namespace string) error {
19+
appname, cleanup, err := packager.Extract(appname)
20+
if err != nil {
21+
return err
22+
}
23+
defer cleanup()
1824
rendered, err := Render(appname, composeFiles, settingsFile, env)
1925
if err != nil {
2026
return err

0 commit comments

Comments
 (0)