deployer icon indicating copy to clipboard operation
deployer copied to clipboard

fail-support in YAML-recipes

Open alexgit2k opened this issue 3 years ago • 2 comments

With fail one can specify which task should run on failure of a specific task, e.g. https://github.com/deployphp/deployer/blob/ff3c33c0a47723378a5af4ee615f3466018dec93/recipe/common.php#L167-L169

When using the deploy-task there is already a fail-task defined deploy:failed, but when creating own tasks in YAML there is currently no way to execute something if a task failed. Therefore it would be good to have the fail-function also available in YAML.

alexgit2k avatar Jul 29 '22 13:07 alexgit2k

Isn't it just simply

after:
    deploy:failed: deploy:unlock

untested - maybe before should be used :thinking:

ulrichmathes avatar Aug 31 '22 11:08 ulrichmathes

Isn't it just simply

after:
    deploy:failed: deploy:unlock

untested - maybe before should be used 🤔

As said: When using the deploy-task there is already a fail-task defined deploy:failed, but when creating own tasks in YAML there is currently no way to execute something if a task failed.

alexgit2k avatar Aug 31 '22 11:08 alexgit2k