Automatic Deploy fails: "Branch Not Match"
I have an issue triggering a deploy via API (https://MYSERVER/api/deploy/J6pvcMX4zTr9O0j6HVLLR)
It fails with
{"message":"Branch Not Match"}
I'm trying to deploy a Dockerfile from my Git server that uses the master branch.
Thanks for help!8 Replies
did you set the right branch on dokploy?
I got the same issue alot despite the branch working and autodeploy working :)
Yes. It is set to
master
, accessing my GitTea instance. Setting it to main
(wrong branch) also fails, pretty much immediately, which makes me doubt it even accesses my Git server. Deploying manually works though, so the issue is solely with the autodeploy URL
it works with other applications, this is the first time I see that issue.When branch not matchit is because the branch you are pushing is not the same as the one dokploy has configured.
so what can I do about it? Clicking "Deploy" works. Where to configure the URL?
what do you mean by configure the URL?
I want to fix my auto deployment via the magic URL, but im not sure where or how to configure it, considering manual deployment works
i had a similar error, see here: https://discord.com/channels/1234073262418563112/1319985299484573736
TL;DR: changing the webhook http method to POST (instead of GET) in forgejo fixed the issue.
(forgejo is a fork of gitea)