commit 5c5d2f5dbd28fd2f4d570d35bc7e9e1777c9e26b Author: Chris Date: Wed Oct 30 10:14:34 2024 +0000 initial commit diff --git a/.env.template b/.env.template new file mode 100644 index 0000000..48d3dc7 --- /dev/null +++ b/.env.template @@ -0,0 +1,3 @@ +INSTANCE_URL="https://git.myserver.com" +RUNNER_REGISTRATION_TOKEN="myregistrationtoken" +RUNNER_NAME="myserver-docker" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..24f9f8d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.env +data/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..075b960 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# gitea runner (act-runner) + +## setup + +- in gitea -> administration -> actions -> runners -> "create new runner" -> get registration token +- copy and adjust .env from .env.template +- starting up should automatically register as new runner diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..a4375fd --- /dev/null +++ b/compose.yaml @@ -0,0 +1,13 @@ +services: + runner: + image: gitea/act_runner:nightly + restart: unless-stopped + environment: + # CONFIG_FILE: /config.yaml + GITEA_INSTANCE_URL: ${INSTANCE_URL} + GITEA_RUNNER_REGISTRATION_TOKEN: ${RUNNER_REGISTRATION_TOKEN} + GITEA_RUNNER_NAME: ${RUNNER_NAME} + # GITEA_RUNNER_LABELS: ${RUNNER_LABELS} + volumes: + - ./data:/data + - /var/run/docker.sock:/var/run/docker.sock