mydrive / capistrano-deploytags

Add timestamped Git tags for each environment on deployment
BSD 2-Clause "Simplified" License
123 stars 20 forks source link

Don't retag redeploys #13

Closed tute closed 10 years ago

tute commented 10 years ago

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

Thank you for your useful script!

gavinheavyside commented 10 years ago

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.

tute commented 10 years ago

Makes sense, thank you!