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.
if it’s running on the same machine the problem is that your forgejo container doesn’t have docker installed. Not sure if this is still best practice but back in the day we would create a docker in docker (DinD) image by installing docker and mounting the host system’s docker socket though I would expect this would take more mounts to avoid running the containers inside your forgejo container. Alternatively just install forgejo directly on the host OS. Not familiar with forgejo at all so this is all generalized advice

