Trigger build without webhook


I’m working on a project that can’t rely on a platform like netlify or vercel.
I’m using Strapi and Nuxt.js on the same server. Nuxt is set to build static files with yarn generate

How can I trigger a build with this setup when I create or update an entry in Strapi?
I’m exploring Strapi lifecycle hooks and a Jenkins pipeline (as two separate alternatives) but so far I’m stuck.

Any ideas?
Thanks a lot!