]> git.immae.eu Git - github/fretlink/ansible-clever.git/commit
deploy: try to restart the app when the CLI asks to do it 75/head
authorPaul Bonaud <paul.bonaud@fretlink.com>
Thu, 6 Aug 2020 09:44:26 +0000 (11:44 +0200)
committerPaul Bonaud <paul.bonaud@fretlink.com>
Thu, 6 Aug 2020 13:54:27 +0000 (15:54 +0200)
commitc3e2ff5e0f31c61eae330a1a41d7a8a83435d9bd
treef03e1db57031f574657838a8a15c41319b1c18be
parent315c7f51af48b54719bd793d9d28a4bb396a926a
deploy: try to restart the app when the CLI asks to do it

In some cases (rollback or deployment errored on clever side),
clever-tools will fail when calling `clever deploy` because it thinks
the currently being deployed commit is already deployed. However in
some cases the git pushed commit is not the currently running commit.

Leading to a failure in our deployment process. The proposed solution
from the clever tools error is to launch `clever restart`.

Until we wait for
https://github.com/CleverCloud/clever-tools/issues/422 to be fixed,
let's do what the error message say: try to restart in case of a
deployment failure.
tasks/deploy.yml
tasks/restart.yml
tests/fake.sh
tests/test-all.yml
tests/test-restart-deploy.yml [new file with mode: 0644]