Skip to content

Commit 9870af2

Browse files
committed
fix build selector
1 parent 4596186 commit 9870af2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

builder.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,13 @@ func (b *Builder) Run(path string) error {
101101
if filename != "Dockerfile" {
102102
return nil
103103
}
104+
105+
// build if one of these match
106+
// * changed (per folder)
107+
// * run by dronetrigger (rebuilds all)
108+
// * no no changes found and diffonly is not set (rebuilds all)
104109
_, found := changes[dir]
105-
if noChanges && !c.DiffOnly {
110+
if c.Dronetrigger || (noChanges && !c.DiffOnly) {
106111
found = true
107112
}
108113
if found {

0 commit comments

Comments
 (0)