From 812b36f32b2f887037738fab33a49c740fe24fed Mon Sep 17 00:00:00 2001 From: fabriciojs Date: Thu, 15 Feb 2024 22:36:31 -0300 Subject: [PATCH 1/2] optimize stop point on cloud deploy file config picking --- commands/cloud_deploy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/cloud_deploy.go b/commands/cloud_deploy.go index 1328488..0c81a95 100644 --- a/commands/cloud_deploy.go +++ b/commands/cloud_deploy.go @@ -229,6 +229,7 @@ func (d *KoolDeploy) createReleaseFile() (filename string, err error) { if _, err = os.Stat(file); err == nil { allFiles = append(allFiles, file) + break } } From 50af6c5c365889a7a230e3b514083cc65e8d1deb Mon Sep 17 00:00:00 2001 From: fabriciojs Date: Thu, 15 Feb 2024 22:38:23 -0300 Subject: [PATCH 2/2] preference to new config file name kool.cloud.yml --- commands/cloud_deploy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/cloud_deploy.go b/commands/cloud_deploy.go index 0c81a95..3aa1c00 100644 --- a/commands/cloud_deploy.go +++ b/commands/cloud_deploy.go @@ -216,10 +216,10 @@ func (d *KoolDeploy) createReleaseFile() (filename string, err error) { // new behavior - tarball only the required files var possibleKoolDeployYmlFiles []string = []string{ - "kool.deploy.yml", - "kool.deploy.yaml", "kool.cloud.yml", "kool.cloud.yaml", + "kool.deploy.yml", + "kool.deploy.yaml", } for _, file := range possibleKoolDeployYmlFiles {