26 lines
1.2 KiB
YAML
26 lines
1.2 KiB
YAML
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'
|