Skip to content

Commit

Permalink
Merge pull request #2886 from crazy-max/bake-override-sort
Browse files Browse the repository at this point in the history
bake: update lookup order for override
  • Loading branch information
crazy-max authored Jan 6, 2025
2 parents c571b9d + b83c3e2 commit e085ed8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bake/bake.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ func defaultFilenames() []string {
names = append(names, composecli.DefaultFileNames...)
names = append(names, []string{
"docker-bake.json",
"docker-bake.override.json",
"docker-bake.hcl",
"docker-bake.override.json",
"docker-bake.override.hcl",
}...)
return names
Expand Down
4 changes: 2 additions & 2 deletions docs/bake-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ By default, Bake uses the following lookup order to find the configuration file:
3. `docker-compose.yml`
4. `docker-compose.yaml`
5. `docker-bake.json`
6. `docker-bake.override.json`
7. `docker-bake.hcl`
6. `docker-bake.hcl`
7. `docker-bake.override.json`
8. `docker-bake.override.hcl`

You can specify the file location explicitly using the `--file` flag:
Expand Down

0 comments on commit e085ed8

Please sign in to comment.