Please update the docs with elaboration for `on_tag` and `on_branch`
Can you please elaborate what those configs do? Does docker-make somehow keep track of which tags it has already published, and only run on_tag when it "sees a new tag" in the repository? If so, how does the tool track which tags it has seen, and which it has not yet seen?
Similar question for on_branch 😄
Hi @prometheas ,
Does docker-make somehow keep track of which tags it has already published, and only run on_tag when it "sees a new tag" in the repository? No,
docker-makewill not keep track of anything, it is a stateless command line tool, soon_tagwill get triggered ifdocker-makedetect there is a git tag attached to the HEAD revision,on_branch:masterwill get triggered ifdocker-makedetect the HEAD revision is on the master branch.
The way docker-make detects git tags and branches relies heavily on the git commands( git tag --contains HEAD|head -1 and git rev-parse --abbrev-ref HEAD actually), I will try to improve the docs so that users can be more explicitly aware of this mechanism.
Thanks a lot for your proposal ^_^
That is rather clever, indeed. Thank you for shedding light on this for me.