Skip to content

Commit

Permalink
rebuild all if no changes found
Browse files Browse the repository at this point in the history
  • Loading branch information
foosinn committed Apr 24, 2019
1 parent 38ded3b commit e83005f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,14 @@ func scan(path string, finisher func(chan *build)) {
dir := filepath.Dir(file)
name := filepath.Base(dir)
filename := filepath.Base(file)
if _, found := changes[dir]; (!c.DiffOnly || found) && err == nil && filename == "Dockerfile" {

_, found := changes[dir]
if len(changes) == 0 {
log.Warn("No changes found, rebuilding all images.")
found = true
}

if (!c.DiffOnly || found) && err == nil && filename == "Dockerfile" {
handleMatrix(name, builds)
}
return nil
Expand Down

0 comments on commit e83005f

Please sign in to comment.