harbur / captain

Captain - Convert your Git workflow to Docker :whale: containers
MIT License
767 stars 51 forks source link

add support for multiple git branches #26

Closed dkapanidis closed 9 years ago

dkapanidis commented 9 years ago

Currently captain by default builds the current working branch, but in case of CI you might want to delegate all branch names of specific commit to the registry.

Take the following example of git commit:

where branchA is the current working branch. By default it will build and push only branchA. But in case of CI it might be desired to build and push all branchnames.

This is what all_branches (-B) flag does.

-B, --all-branches=false: Build all branches on specific commit instead of just working branch