添加 act-docker-compose.yml
This commit is contained in:
parent
8ff9f7d914
commit
43e0f5b0b2
25
act-docker-compose.yml
Normal file
25
act-docker-compose.yml
Normal file
@ -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'
|
Loading…
Reference in New Issue
Block a user