ansistrano / deploy

Ansible role to deploy scripting applications like PHP, Python, Ruby, etc. in a capistrano style
https://ansistrano.com
MIT License
2.37k stars 343 forks source link

Own "keep releases" mechanism ? #355

Closed stephane-lou closed 4 years ago

stephane-lou commented 4 years ago

Hi,

We're using ansistrano in our deployment process end want to implement a new way of keeping releases with some custom rules.

We want to keep releases based on the date, maybe keep "last X days" releases.

Is it possible and how ?

Thanks !

ricardclau commented 4 years ago

At the moment you can only keep an amount of releases via the ansistrano_keep_releases variable which is default to 3 but the date is not taken into account. So, in short, what you want is not possible at the moment.