-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optionally make clever deploy
no-op (without failure) or trigger a restart if repo is up-to-date.
#422
Comments
clever deploy
trigger a restart if repo is up-to-date.clever deploy
no-op (without failure) or trigger a restart if repo is up-to-date.
Here's an update on the situation: I gave up and wrote a script that runs However, it does not handle the more annoying case where the running commit is not the commit the CI wants to deploy (but the commit the CI wants to deploy has already been pushed). This can happen when we rollback or when a deployment fails. The simplest solution here would be to grep the output of |
I am having this exact problem. I am willing to submit a PR to fix this, but I see two options here
Any thoughts on this ? |
The minimal change would be for Overloading In any case (either with a |
Any opinion @hsablonniere ? I will gladly implement this feature, but I do not want to impose an unwanted design for this feature |
Sorry, I'm a bit overwhelmed by other projects. I should have answer sooner. |
@clementd-fretlink @divarvel @jtanguy We're putting the project back on tracks and proposed a solution for this problem in #276, let's discuss the details there. |
We recently switched from
git push
toclever deploy
now that it returns correctly.When running
clever deploy
on an up-to-date application, this triggers an error, telling us to useclever restart
. So when we run the deployment job twice, it fails, instead of silently no-oping as before.Parsing the output of
clever deploy
in case of error is not really desirable, so we could instead runclever status
before, and chose what to do based on the deployed commit id. This would involve ugly and brittle bashisms.A nice solution would be instead to add a flag to
clever deploy
, to instruct it to trigger a restart if the application is up-to-date (for completion sake, it would be also be nice to ask it to noop and return successfully as well).For users, failing and displaying "run clever restart" is nice. For CIs, it's not super convenient.
as always, I'd be happy to take care of the implementation if needed.
The text was updated successfully, but these errors were encountered: