diff --git a/.gitignore b/.gitignore index 0ab9d46e..088803fa 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ build/ *.jks gradlew.bat maint/ +runner/.env diff --git a/runner/.env.example b/runner/.env.example new file mode 100644 index 00000000..809cacb8 --- /dev/null +++ b/runner/.env.example @@ -0,0 +1,3 @@ +# Gitea Actions Runner Token +# Get it from: Settings → Actions → Runners on your repo page at git.obahan.xyz +GITEA_RUNNER_TOKEN=your-token-here diff --git a/runner/docker-compose.yml b/runner/docker-compose.yml new file mode 100644 index 00000000..1f5fa6ab --- /dev/null +++ b/runner/docker-compose.yml @@ -0,0 +1,13 @@ +services: + runner: + image: docker.io/gitea/runner:3 + container_name: wirevpn-runner + restart: always + environment: + GITEA_INSTANCE_URL: "https://git.obahan.xyz" + GITEA_RUNNER_REGISTRATION_TOKEN: "${GITEA_RUNNER_TOKEN}" + GITEA_RUNNER_NAME: "wirevpn-builder" + GITEA_RUNNER_LABELS: "self-hosted" + volumes: + - ./data:/data + - /var/run/docker.sock:/var/run/docker.sock