feat: Initial commit

This commit is contained in:
2025-03-19 14:14:27 -04:00
parent 840d1ba41a
commit d706f43ae9
3 changed files with 32 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.env

25
compose.yaml Normal file
View File

@@ -0,0 +1,25 @@
services:
runner:
image: docker.io/gitea/act_runner:nightly
container_name: gitea-action-runner
env_file:
- .env
environment:
CONFIG_FILE: /config.yaml
GITEA_INSTANCE_URL: "${GITEA_URL}"
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
GITEA_RUNNER_NAME: "${GITEA_RUNNER_NAME}"
GITEA_RUNNER_LABELS: "${GITEA_RUNNER_LABELS}"
volumes:
- ./config.yaml:/config.yaml
- act_runner_data:/data
- /var/run/docker.sock:/var/run/docker.sock
security_opt:
- no-new-privileges:true
volumes:
act_runner_data: {}
networks:
backend:
external: true

6
example.env Normal file
View File

@@ -0,0 +1,6 @@
# https://docs.gitea.com/usage/actions/act-runner
REGISTRATION_TOKEN="your-token"
GITEA_URL="git.example.com"
GITEA_RUNNER_NAME="runner-name"
# https://docs.gitea.com/usage/actions/act-runner#labels
GITEA_RUNNER_LABELS="ubuntu-latest:docker://node:16-bullseye,ubuntu-22.04:docker://node:16-bullseye,ubuntu-20.04:docker://node:16-bullseye,ubuntu-18.04:docker://node:16-buster"