diff --git a/versioncontrol/compose.yml b/versioncontrol/compose.yml index c4d7d67..6887f69 100644 --- a/versioncontrol/compose.yml +++ b/versioncontrol/compose.yml @@ -7,6 +7,8 @@ services: - USER_UID=1000 - USER_GID=1000 - GITEA__server__ROOT_URL=https://code.lazyworkhorse.net + - GITEA__actions__ENABLED=true + - GITEA__actions__DEFAULT_ACTIONS_URL=off - SSH_PORT=2222 - SSH_LISTEN_PORT=2222 # Enable Gitea Actions (act_runner required on host) @@ -44,6 +46,22 @@ services: # Internal Routing - "traefik.http.services.gitea.loadbalancer.server.port=3000" + act_runner: + image: gitea/act_runner:latest + container_name: act_runner + environment: + - GITEA_INSTANCE_URL=https://code.lazyworkhorse.net + - GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_TOKEN} + - GITEA_RUNNER_NAME=ai-host-runner + - GITEA_RUNNER_LABELS=ubuntu-latest:docker://catthehacker/ubuntu:full-22.04,nixos-builder:docker://nixos/nix + volumes: + - /var/run/docker.sock:/var/run/docker.sock + networks: + - vc_net + restart: always + depends_on: + - gitea + networks: vc_net: external: true