diff --git a/gitea-act-runner/README.md b/gitea-act-runner/README.md new file mode 100644 index 0000000..e896a4e --- /dev/null +++ b/gitea-act-runner/README.md @@ -0,0 +1,9 @@ +# gitea-act-runner + +A runner for Gitea based on act. + +## Important step when deploying +When the runner loops not being able to read the file `/config/config.yaml`, enter the container and execute +```bash +touch /config/config.yaml +``` diff --git a/gitea-act-runner/config.yaml b/gitea-act-runner/config.yaml new file mode 100644 index 0000000..e69de29 diff --git a/gitea-act-runner/docker-compose.yaml b/gitea-act-runner/docker-compose.yaml new file mode 100644 index 0000000..c3acaf3 --- /dev/null +++ b/gitea-act-runner/docker-compose.yaml @@ -0,0 +1,18 @@ +version: "3.8" +services: + runner: + image: gitea/act_runner:nightly + environment: + CONFIG_FILE: /config/config.yaml + GITEA_INSTANCE_URL: "${INSTANCE_URL}" + GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}" + GITEA_RUNNER_NAME: "${RUNNER_NAME}" + GITEA_RUNNER_LABELS: "${RUNNER_LABELS}" + volumes: + - act_runner_config:/config + - act_runner_data:/data + - /var/run/docker.sock:/var/run/docker.sock + +volumes: + act_runner_config: + act_runner_data: