dnephin / dobi

A build automation tool for Docker applications
https://dnephin.github.io/dobi/
Apache License 2.0
311 stars 36 forks source link

Use file libraries to properly filter excludes #184

Closed tduffield closed 4 years ago

tduffield commented 4 years ago

After adding testing, we discovered that the current method of filtering only works if you're filtering top-level files or directories, which satisfied the use case of skippiing the '.git' directory.

This add testing, shifts to passing search parameters as a struct, and uses proper pattern matching to evaluate the dockerignore file based on the Docker documentation.

Signed-off-by: Tom Duffield tom@chef.io

tduffield commented 4 years ago

@dnephin Is there anything else you would like me to add to this PR?