Skip to content

Allow deploy job to be retryable

Hi!

I'm using the deploy-to-prod component and I noticed that if something fails during deployment (for example: I cancel it from CC Console because I forgot to update some env vars there) and I want to retry the job, it does not work because the clever deploy command fails:

$ clever deploy
Remote application is app_id=xxx, alias=xxx, name=xxx
Remote application belongs to xxx
[ERROR] The clever-cloud application is up-to-date (a2f1d5213d2891b9d9bc5e47b42a0f6aa2a9289b).
        You can set a policy with 'same-commit-policy' to handle differently when remote HEAD has the same commit as the one to push.
        Or try this command to restart the application:
        clever restart

Maybe this command should instead be clever deploy --same-commit-policy restart? Or at least there should be a new input to allow setting this flag?