posted in Selfhosted

CI/CD question: How do you actually deploy a self-hosted web app that runs in docker (preferably using Forgejo actions)?

I’ve been trying to figure this part out for a few days. I have my own Forgejo instance and a website each running in separate containers on a Raspberry Pi. I also have the forgejo runner installed in another docker container. I followed some guides to set up forgejo actions, but all the guides end with a simple example that basically just runs the “ls” command.

I tried running ‘docker compose up’ inside my workflow, but it fails with “docker: command not found”. So how do you use the workflow to actually update the website in the other container?

I think I’d prefer keeping everything in docker but I’d be okay with making the workflow run some script on the host machine if needed.

Replying to an earlier post

This isn’t a direct answer to your question, but maybe you’ll find it helpful. I personally use dokploy to handle this. The approach is a bit different and it works more like vercel and netlify. You point dokploy to your repository and it will pull the code and deploy it.

I also have a forgejo actions runner (which I actually manage via dokploy), but I mainly use actions to run tests and code checks.

en