fix: 解决升级应用失败的 BUG (#534)

This commit is contained in:
zhengkunwang223
2023-04-07 16:46:11 +08:00
committed by GitHub
parent 3b3fad7278
commit 155363afa6
6 changed files with 62 additions and 19 deletions

View File

@@ -10,6 +10,7 @@ import (
"github.com/docker/compose/v2/pkg/compose"
"github.com/docker/docker/client"
"github.com/joho/godotenv"
"path"
"strings"
"time"
)
@@ -109,6 +110,7 @@ func GetComposeProject(projectName, workDir string, yml []byte, env []byte) (*ty
if err != nil {
return nil, err
}
project.ComposeFiles = []string{path.Join(workDir, "docker-compose.yml")}
return project, nil
}