.env.sample | ||
abra.sh | ||
compose.yml | ||
config.yml.tmpl | ||
entrypoint.sh.tmpl | ||
LICENSE | ||
README.md |
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
Docker in Docker
To give an action container the ability to create more docker containers (e.g. for tests) you need to set the container network to "host". This can be done in the .env
file:
CONTAINER_NETWORK=host
This allows you to access the docker host at "tcp://0.0.0.0: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://0.0.0.0:2375
platforms: linux/amd64
- name: run api tests
run: |
export DOCKER_HOST="tcp://0.0.0.0:2375"
make test-api