only trigger deployments when a sub path is touched
Hello,
I’m unsure if that part is in the scope of dokploy or nixpacks. I want to restrict build trigger when I push a change to just a sub path of the git repo (using a mono repo).
How can I do that?
5 Replies
not possible for now, would be a good idea!
On your service env you can use the commands using a filter. Example: NIXPACKS_BUILD_CMD="pnpm turbo build --filter @acme/web"
NIXPACKS_START_CMD="pnpm turbo start --filter @acme/web"
Thanks guys for the help. I’m already only building using filter and turbo. I have two app on the same repo (let’s say A and B), when I push a change on A dokploy will rebuild and start the app A … and (unfortunately) also the app B.
I came from coolify which had that feature but it’s a bit too complex and unstable for my basic usage but this feature was a super neat one. Hope that this one will come soon to save a bit of build time.
It's working for me using the commands i sent.
I have two app service on dokploy
I think to implement this I would have to do some logic with git and some bash to determine if there are changes in a specific folder