mydrive / capistrano-deploytags

Add timestamped Git tags for each environment on deployment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't retag redeploys

tute opened this issue · comments

It would be great if redeploying commits wouldn't produce more tags.

Thank you for your useful script!

Retagging, even if the git SHA hasn't changed, is a deliberate design decision. Consider a production deployment where we add a server to an existing cluster. We need to deploy the code to this new server, but the git SHA hasn't changed since the last deploy to a different set of servers. We absolutely want to know about the two distinct deploys, even though the code hasn't changed, so we tag all deploys.

Makes sense, thank you!