From 43e0f5b0b241f645a1e3bc8c56d85a090e748132 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Mon, 3 Jun 2024 12:31:07 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20act-docker-compose.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- act-docker-compose.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 act-docker-compose.yml diff --git a/act-docker-compose.yml b/act-docker-compose.yml new file mode 100644 index 0000000..a30eeed --- /dev/null +++ b/act-docker-compose.yml @@ -0,0 +1,25 @@ +version: '3.8' # https://docs.docker.com/compose/compose-file/compose-versioning/ + +services: + + gitea_act_runner: + image: vegardit/gitea-act-runner:latest + #image: ghcr.io/vegardit/gitea-act-runner:latest + restart: always + ports: + - 8088:8088 + volumes: + - /var/run/docker.sock:/var/run/docker.sock:rw + - ./data:/data:rw # the config file is located at /data/.runner and needs to survive container restarts + environment: + TZ: "Asia/Shanghai" + # config parameters for initial runner registration: + GITEA_INSTANCE_URL: 'http://172.17.0.1:3000' # required docker hsot ip + # GITEA_RUNNER_REGISTRATION_TOKEN_FILE: 'path/to/file' # one-time registration token, only required on first container start + GITEA_RUNNER_REGISTRATION_TOKEN: '' + GITEA_RUNNER_NAME: '' + GITEA_RUNNER_LABELS: 'ubuntu-latest:docker://catthehacker/ubuntu:act-22.04,ubuntu-22.04:docker://catthehacker/ubuntu:act-22.04,ubuntu-20.04:docker://catthehacker/ubuntu:act-20.04,ndk21:docker://teampgm/android-ndk:34-jdk17.0.10_7-ndk21.4.7075529-cmake3.18.1' + ACT_CACHE_SERVER_ENABLED: 'true' + ACT_CACHE_SERVER_HOST: '' # required eth0 hsot ip + ACT_CACHE_SERVER_PORT: '8088' + GITEA_RUNNER_MAX_PARALLEL_JOBS: '4'