feat: 优化 Act Runner 安装脚本

This commit is contained in:
wanghe-fit2cloud
2024-05-20 12:07:01 +08:00
parent 366fb23ef2
commit 506f3b6a55
4 changed files with 43 additions and 35 deletions
+30 -30
View File
@@ -1,31 +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
formFields:
- default: http://1.2.3.4:3000
edit: true
envKey: GITEA_INSTANCE_URL
labelEn: Gitea Instance
labelZh: Gitea 实例
required: true
rule: paramExtUrl
type: text
- default: '<registration_token>'
edit: true
envKey: RUNNER_REGISTRATION_TOKEN
labelEn: Registration Token
labelZh: Registration Token
required: true
type: text
- default: '<runner_name>'
edit: true
envKey: RUNNER_NAME
labelEn: Runner Name
labelZh: Runner Name
required: true
type: text
- default: '<runner_labels>'
edit: true
envKey: RUNNER_LABELS
labelEn: Runner Labels
labelZh: Runner Labels
required: true
type: text
+1 -2
View File
@@ -1,5 +1,6 @@
services:
act_runner:
image: gitea/act_runner:0.2.10
container_name: ${CONTAINER_NAME}
restart: always
networks:
@@ -14,10 +15,8 @@ services:
- 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