dnephin / dobi

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

glob patterns for sources and artifacts #192

Closed mlilien closed 4 years ago

mlilien commented 4 years ago

Is it possible to exclude files/directories from sources resp. artifacts? I would like to achive something like.

sources:
  - "./"
  - "!./dirA/"
dnephin commented 4 years ago

The glob pattern matching is documented here: https://golang.org/pkg/path/filepath/#Match.

I don't think there is any way to have some lines exclude patterns already matched by the first.

mlilien commented 4 years ago

thank you for clarifying.