Open mezotv opened 1 week ago
Looks like this happen when you have for example the same repository and branch name in different organization, i think we need to filter the webhook by another property maybe
Looks like this happen when you have for example the same repository and branch name in different organization, i think we need to filter the webhook by another property maybe
Where is the code for the current webhooks located? I can try to take a look.
the issue is here, if you have both repositories names and branch it will deploy both
https://github.com/Dokploy/dokploy/blob/canary/apps/dokploy/pages/api/deploy/github.ts#L67
the issue is here, if you have both repositories names and branch it will deploy both
https://github.com/Dokploy/dokploy/blob/canary/apps/dokploy/pages/api/deploy/github.ts#L67
Apperently there seems to be a repository id in the meta tags somewhere maybe you can also fetch that using the api and assign to the project. For example this repos id is 788847937
. They should be unique!
Yes, although I think this problem would not happen only in github provider, but in all providers, if you have the same name of the repo/branch will do the same.
To Reproduce
Current vs. Expected behavior
Currently project 1 will get the commit first and then rebuild for no reason even tho nothing was pushed to its repo. After thats done project 2 will get the commit and start rebuilding.
I also had this happen where I triggered a rebuild on project 2 dokploy started rebuilding project 1 first.
Provide environment information
Which area(s) are affected? (Select all that apply)
Application
Additional context
Discord conversation: https://canary.discord.com/channels/1234073262418563112/1234073263584575511/1305245920585187438