p4u1 7f90d5fcfc docs: Adds metadata to README.md (#19)
Reviewed-on: #19
Co-authored-by: p4u1 <p4u1_f4u1@riseup.net>
Co-committed-by: p4u1 <p4u1_f4u1@riseup.net>
2026-01-23 08:43:19 +00:00
2026-01-06 17:05:57 +01:00
2025-01-21 20:46:20 +01:00
2025-10-03 20:04:30 +00:00

Forgejo runner

The Forgejo Runner is a daemon that fetches workflows to run from a Forgejo instance, executes them, sends back with the logs and ultimately reports its success or failure.

!! WARNING: This recipe should be used with great caution, since it has access to the docker daemon. We recommend running it in a seperate vm or host !!

Registering

The forgejo runner needs to be registered at the forgejo instance. For that see the official documentation on how to create a token.

abra app cmd --chaos <app> app register_runner <host> <name> <token>

Enabling caching

To enable caching set CACHE_ENABLED to true:

CACHE_ENABLED=true
CACHE_HOST="app"

If you want to use the caching of the runner itself, you have to specify "app" as the CACHE_HOST and make sure to use the default in CONTAINER_NETWORK (see below), so the actions containers can access the runner.

Docker in Docker (in Docker)

Per default, the action container has the ability to access the docker socket of the host machine via the socket proxy in this recipe. Keep this in mind, since this is a security concern!

If you don't set anything in the CONTAINER_NETWORK env, the runner is configured to their own dedicated network and so can't reach the docker socket proxy.

If you set CONTAINER_NETWORK to default, the runner attaches the started containers to the internal network of this recipe, so the socket proxy can be reached (via it's dns name).

This allows you to access the docker host at "tcp://socket-proxy:2375". See this part of an action workflow on how to access the docker host.

- name: Set up Docker Buildx
  uses: docker/setup-buildx-action@v3
  with:
    endpoint: tcp://socket-proxy:2375
    platforms: linux/amd64
- name: run api tests
  run: |
    export DOCKER_HOST="tcp://socket-proxy:2375"
      make test-api
Description
No description provided
Readme GPL-3.0 146 KiB
Languages
Shell 77.1%
Roff 22.9%