]> git.immae.eu Git - github/fretlink/ansible-clever.git/commit
Don't run `clever deploy` if the app is up-to-date
authorClement Delafargue <clement.delafargue@fretlink.com>
Wed, 24 Jun 2020 09:34:28 +0000 (11:34 +0200)
committerClement Delafargue <clement.delafargue@fretlink.com>
Tue, 30 Jun 2020 13:31:19 +0000 (15:31 +0200)
commitfacc275a703d3bccc320e5577eb3d050f99dff0e
tree0f7aaa15f07c446b00484fa54bd98d2bb5c648c2
parent44e55b1d81f5defe28249d6b70b894c1ebad7c91
Don't run `clever deploy` if the app is up-to-date

Running `git push` when the remote is up-to-date
no-ops (it does not trigger a deployment, but it does not fail either).

Running `clever deploy` when the remote is up-to-date triggers a failure. Here, we care about the _end result_ (ie the app is deployed on the correct commit), so no-oping is more appropriate.

This behaviour is not baked in `clever-tools`, but I think it should. I opened an issue. This script
is a temporary workaround. (at least I hope it's temporary)
https://github.com/CleverCloud/clever-tools/issues/422
files/clever-deploy.sh [new file with mode: 0755]
tasks/deploy.yml
tasks/setup.yml