mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-07 03:29:57 +00:00
Prevent file ignorer from ignoring Dockerfile (and variants), docker-compose.yml
Change-type: patch Resolves: #1445 Signed-off-by: Scott Lowe <scott@balena.io>
This commit is contained in:
parent
df3e1f1886
commit
95b5ac1c7f
@ -115,6 +115,11 @@ export class FileIgnorer {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't ignore Dockerfile (with or without extension) or docker-compose.yml
|
||||||
|
if (/^Dockerfile$|^Dockerfile\.\S+/.test(path.basename(relFile)) || path.basename(relFile) === 'docker-compose.yml') {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
const dockerIgnoreHandle = dockerIgnore();
|
const dockerIgnoreHandle = dockerIgnore();
|
||||||
const gitIgnoreHandle = ignore();
|
const gitIgnoreHandle = ignore();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user