Open decentral1se opened 4 years ago
Please see https://github.com/crisward/dokku-clone/pull/21.
Thanks for the suggestion and having a go, and more importantly testing. I'll leave this open, but I can't promise I'll get chance to look at it any time soon.
I have a related request, which is: could we add a flag that makes dokku clone
a no-op, if the git clone operation leaves the git checkout unchanged?
I notice that, currently, running dokku clone
will rebuild the docker image and recreate the docker container even if the source code of the app hasn't changed at all.
P.S. If there was a way to make dokku clone
a no-op in this case, it would simplify the implementation of the dokku_clone
ansible module, since the module could then simply run dokku clone
and rely on its internal logic to check whether anything needs to be done.
We can avoid the following:
This is useful for doing Ansible deployments where you want to control exactly at which point the app is deployed and not have it come up during some other configuration command.