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
DJKnaeckebrot
DJKnaeckebrot4mo ago
did you set the right branch on dokploy?
hyteq
hyteq4mo ago
I got the same issue alot despite the branch working and autodeploy working :)
johannes0910
johannes0910OP4mo ago
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.
Siumauricio
Siumauricio4mo ago
When branch not matchit is because the branch you are pushing is not the same as the one dokploy has configured.
johannes0910
johannes0910OP4mo ago
so what can I do about it? Clicking "Deploy" works. Where to configure the URL?
Siumauricio
Siumauricio4mo ago
what do you mean by configure the URL?
johannes0910
johannes0910OP4mo ago
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
monco
monco3mo ago
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)

Did you find this page helpful?