feat:添加act_runner到列表 (#1431)

This commit is contained in:
okxlin
2024-05-20 11:35:15 +08:00
committed by GitHub
parent 5be0c0e915
commit 366fb23ef2
5 changed files with 76 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
additionalProperties:
formFields:
- default: http://1.2.3.4:567
edit: true
envKey: GITEA_INSTANCE_URL
labelEn: Gitea instance URL
labelZh: Gitea 实例 URL
required: true
rule: paramExtUrl
type: text
- default: ''
edit: true
envKey: RUNNER_REGISTRATION_TOKEN
labelEn: Gitea runner REGISTRATION TOKEN
labelZh: Gitea runner REGISTRATION TOKEN
required: true
type: text
- default: ''
edit: true
envKey: RUNNER_NAME
labelEn: Gitea runner name
labelZh: Gitea runner name
required: true
type: text
- default: ''
edit: true
envKey: RUNNER_LABELS
labelEn: Gitea runner labels
labelZh: Gitea runner labels
required: true
type: text
+23
View File
@@ -0,0 +1,23 @@
services:
act_runner:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
volumes:
#- ./data/config.yaml:/config.yaml # 可选配置
- ./data/data:/data
- /var/run/docker.sock:/var/run/docker.sock
environment:
#- CONFIG_FILE=/config.yaml
- GITEA_INSTANCE_URL=${GITEA_INSTANCE_URL}
- GITEA_RUNNER_REGISTRATION_TOKEN=${RUNNER_REGISTRATION_TOKEN}
- GITEA_RUNNER_NAME=${RUNNER_NAME}
- GITEA_RUNNER_LABELS=${RUNNER_LABELS}
image: gitea/act_runner:0.2.10
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true