configs/forgejo/runner
sneakers-the-rat c4a118eb35
Some checks failed
/ test (push) Failing after 23s
/ test2 (push) Successful in 26s
demo
2024-06-29 00:58:11 -07:00
..
config.yaml test run 2024-06-29 00:24:59 -07:00
docker-compose.yaml demo 2024-06-29 00:58:11 -07:00
readme.md run runner 2024-06-29 00:15:39 -07:00

Forgejo runner

https://forgejo.org/docs/next/admin/actions/

Prep

Make user: forgejo-runner

Make data directory within /home/forgejo-runner

set -e

mkdir -p data
touch data/.runner
mkdir -p data/.cache

chown -R 1001:1001 data/.runner
chown -R 1001:1001 data/.cache
chmod 775 data/.runner
chmod 775 data/.cache
chmod g+s data/.runner
chmod g+s data/.cache

Config

.runner

After registering the runner, use one of these images: https://github.com/catthehacker/docker_images/pkgs/container/ubuntu

eg, in .runner:

{
  
  "id": 1,
  "uuid": "d772eb34-e677-4cfe-81a2-f0adcf038375",
  "name": "jonny-runner",
  "token": "...",
  "address": "https://git.jon-e.net",
  "labels": [
    "docker:docker://node:16-bullseye",
    "ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest"
  ]
}

config.yaml

Use the one in this repo lol, symlink it into /home/forgejo-runner