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.

you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 16 hours ago*

AFAIK, Actions are for building artifacts for the repo that can then be used by other services to deploy. Like it'll run a Dockerfile to build a new image, but you still need Watchtower to update your running stack from the repo tag.

  • source