1
0

feat:添加act_runner到列表#173

This commit is contained in:
okxlin
2023-11-17 00:38:10 +08:00
parent 268d77e7b1
commit a44465858d
9 changed files with 260 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
CONTAINER_NAME="act_runner"
DATA_PATH="./data"
GITEA_INSTANCE_URL="http://1.2.3.4:567"
RUNNER_REGISTRATION_TOKEN="xxx"
RUNNER_NAME="xxx"
RUNNER_LABELS="xxx"

View File

@@ -0,0 +1,37 @@
additionalProperties:
formFields:
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text
- default: http://1.2.3.4:567
edit: true
envKey: GITEA_INSTANCE_URL
labelEn: Gitea instance URL
labelZh: Gitea 实例 URL
required: true
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

View File

@@ -0,0 +1,24 @@
version: '3'
services:
act_runner:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
volumes:
#- ${DATA_PATH}/config.yaml:/config.yaml # 可选配置
- ${DATA_PATH}/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:latest
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true