Synced apps from source repository via GitHub Actions

This commit is contained in:
QYG2297248353
2025-10-28 03:41:34 +00:00
parent 19cacd0bed
commit ec33be827d
41 changed files with 356 additions and 14 deletions
+18
View File
@@ -0,0 +1,18 @@
# 数据持久化路径 [必填]
APIFOX_RUNNER_ROOT_PATH=/home/apifox-runner
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=4524
# 应用服务地址 [必填]
SERVER_APP_BASE_URL=https://api.apifox.cn
# 访问令牌 [必填]
ACCESS_TOKEN=
# 团队 ID [必填]
TEAM_ID=0
# Runner ID [必填]
RUNNER_ID=0
+45
View File
@@ -0,0 +1,45 @@
additionalProperties:
formFields:
- default: "/home/apifox-runner"
edit: true
envKey: APIFOX_RUNNER_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 4524
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: "https://api.apifox.cn"
edit: true
envKey: SERVER_APP_BASE_URL
labelZh: 应用服务地址
labelEn: App Server address
required: true
type: text
- default: ""
edit: true
envKey: ACCESS_TOKEN
labelZh: 访问令牌
labelEn: Access Token
required: true
type: text
- default: 0
edit: true
envKey: TEAM_ID
labelZh: 团队 ID
labelEn: Team ID
required: true
type: number
- default: 0
edit: true
envKey: RUNNER_ID
labelZh: Runner ID
labelEn: Runner ID
required: true
type: number
@@ -0,0 +1,21 @@
networks:
1panel-network:
external: true
services:
apifox-runner:
container_name: apifox-runner-team
env_file:
- ./envs/global.env
- .env
environment:
- TZ=Asia/Shanghai
image: registry.cn-hangzhou.aliyuncs.com/apifox/self-hosted-general-runner:slim
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:4524
restart: always
volumes:
- ${APIFOX_RUNNER_ROOT_PATH}/runner:/opt/runner
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
@@ -0,0 +1,17 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
@@ -0,0 +1,17 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi