Skip to content

Commit 40af5f2

Browse files
authored
Merge pull request #505 from kool-dev/improve-deploy-file-picking
optimize stop point on cloud deploy file config picking
2 parents b4f5ef7 + 50af6c5 commit 40af5f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

commands/cloud_deploy.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ func (d *KoolDeploy) createReleaseFile() (filename string, err error) {
212212

213213
// new behavior - tarball only the required files
214214
var possibleKoolDeployYmlFiles []string = []string{
215-
"kool.deploy.yml",
216-
"kool.deploy.yaml",
217215
"kool.cloud.yml",
218216
"kool.cloud.yaml",
217+
"kool.deploy.yml",
218+
"kool.deploy.yaml",
219219
}
220220

221221
for _, file := range possibleKoolDeployYmlFiles {
@@ -225,6 +225,7 @@ func (d *KoolDeploy) createReleaseFile() (filename string, err error) {
225225

226226
if _, err = os.Stat(file); err == nil {
227227
allFiles = append(allFiles, file)
228+
break
228229
}
229230
}
230231

0 commit comments

Comments
 (0)