Deployment uses older commit
Had a couple new commits, I've webhooks setup, and they worked just fine.
At one point I disabled
Autodeploy
to play around (unsure if related), re-enabed it later, and from that point, it's using older commit instead of most recent one.
What kind of logs could be provided to help figuring out the issue? Deployment logs seem to be fine, they are fetching from git repo.. :/

8 Replies
Hmmm what version you hav3?
In the last version we implement GitHub deployments with zero configuration
So it’s not required to use the webhooks
Had it installed yesterday, so should be close enough. Will turn off webhooks though.
Though now I'm encountering even worse issue, where in deployment it says
Docker Deployed: :white_check_mark:
but container isn't there 😐 (and docker logs on VPS doesn't provide more info either)
Did you already removed the webhook in your GitHub account?
Can you share your docker file?
Probably your docker file has something which are causing the container cannot start
Did you already removed the webhook in your GitHub account?yes
Probably your docker file has something which are causing the container cannot startyes that was the issue. had some dumb issue on my end, which made it work locally not in VPS, but dokploy sadly did not show any logs. However, once it booted, I was able to see logs from earlier failed containers where I saw that actual issue causing the problem. However, original issue, wher older commit was used, is still interesting. hopefully it happens again so it can be checked.
Hmm I’m pretty sure you have the latest changes probably the older commit hash is more a visual thing
I will try to check in these days
it wasn't the latest, because the error thrown (and code it displayed alongside error) was from older commit. should have shown that too, my bad.
Ahh.
So, if error is thrown inside Dockerfile execution, it seems to deploy old version. But deployment is shown as successful.
That is correct, that's how docker swarm works, if the dockerfile build have troubles they are not going to deploy, about the deployment is shown as succesful this is a fix https://github.com/Dokploy/dokploy/pull/265 which I'm pretty sure will fix this types of issues where the docker build have some errors internaly and they just show docker deployed
GitHub
refactor(docker-build): replace docker build with the command by Si...
transition the docker build process from dockerode to raw command, since we have some troubles that are causing some features aren't available such as #155 and some people experience the docker...
Ah, okay. Good to know