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

WoodYouLookAtThat@lemmy.today ⁨8⁩ ⁨hours⁩ ago

If you’re running forgejo runner in a docker container, it can only do things inside that container (excepting if it connects to something else).

If you install forgejo runner on the host itself and give it access to the docker daemon, it could run docker compose up, but otherwise it’s trying to use an asset that it cannot access.

You could also feasibly have the runner SSH into the target machine and run docker commands from there.

To me, both of these are suboptimal and I would sooner split the job into two phases:

  1. forgejo action builds
  2. gitops deploys (doco-cd, komodo, etc)

original
Sort:hotnewtop