mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-30 10:38:50 +00:00
Merge pull request #1558 from balena-io/1445-multicontainer-push-fix
Prevent file ignorer from ignoring Dockerfile, docker-compose.yml
This commit is contained in:
commit
56e35f6e9f
@ -115,6 +115,11 @@ export class FileIgnorer {
|
||||
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 gitIgnoreHandle = ignore();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user