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.

  • LukeTS@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 hour ago

    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.