Skip to content

Commit

Permalink
Merge pull request #505 from kool-dev/improve-deploy-file-picking
Browse files Browse the repository at this point in the history
optimize stop point on cloud deploy file config picking
  • Loading branch information
fabriciojs authored Feb 16, 2024
2 parents b4f5ef7 + 50af6c5 commit 40af5f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions commands/cloud_deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,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 {
Expand All @@ -225,6 +225,7 @@ func (d *KoolDeploy) createReleaseFile() (filename string, err error) {

if _, err = os.Stat(file); err == nil {
allFiles = append(allFiles, file)
break
}
}

Expand Down

0 comments on commit 40af5f2

Please sign in to comment.