Processed apps directory via GitHub Actions

This commit is contained in:
QYG2297248353
2026-05-28 16:05:04 +00:00
parent 4659fae9d4
commit fe2437f550
54 changed files with 14 additions and 14 deletions
+87
View File
@@ -0,0 +1,87 @@
# 数据持久化路径 [必填]
WOODPECKER_ROOT_PATH=/home/woodpecker
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=8000
# GRPC 端口 [必填]
PANEL_APP_PORT_GRPC=9000
# 密钥 [必填]
WOODPECKER_AGENT_SECRET=
# 访问地址 [必填]
WOODPECKER_HOST=http://localhost:8000
# 是否允许注册 [必填]
WOODPECKER_OPEN=false
# 管理员账户列表
WOODPECKER_ADMIN=
# 组织列表
WOODPECKER_ORGS=
# 特权插件
WOODPECKER_PLUGINS_PRIVILEGED=
# 登录过期时间 [必填]
WOODPECKER_SESSION_EXPIRES=72h
# HTTP 代理
HTTP_PROXY=
# GitHub 集成 [必填]
WOODPECKER_GITHUB=false
# GitHub 客户端 ID
WOODPECKER_GITHUB_CLIENT=
# GitHub 客户端密钥
WOODPECKER_GITHUB_SECRET=
# Gitea 集成 [必填]
WOODPECKER_GITEA=false
# Gitea 地址
WOODPECKER_GITEA_URL=
# Gitea 客户端 ID
WOODPECKER_GITEA_CLIENT=
# Gitea 客户端密钥
WOODPECKER_GITEA_SECRET=
# Forgejo 集成 [必填]
WOODPECKER_FORGEJO=false
# Forgejo 地址
WOODPECKER_FORGEJO_URL=
# Forgejo 客户端 ID
WOODPECKER_FORGEJO_CLIENT=
# Forgejo 客户端密钥
WOODPECKER_FORGEJO_SECRET=
# GitLab 集成 [必填]
WOODPECKER_GITLAB=false
# GitLab 地址
WOODPECKER_GITLAB_URL=
# GitLab 客户端 ID
WOODPECKER_GITLAB_CLIENT=
# GitLab 客户端密钥
WOODPECKER_GITLAB_SECRET=
# Bitbucket 集成 [必填]
WOODPECKER_BITBUCKET=false
# Bitbucket 客户端 ID
WOODPECKER_BITBUCKET_CLIENT=
# Bitbucket 客户端密钥
WOODPECKER_BITBUCKET_SECRET=
+237
View File
@@ -0,0 +1,237 @@
additionalProperties:
formFields:
- default: "/home/woodpecker"
edit: true
envKey: WOODPECKER_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 8000
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: 9000
edit: true
envKey: PANEL_APP_PORT_GRPC
labelZh: GRPC 端口
labelEn: GRPC port
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: WOODPECKER_AGENT_SECRET
labelZh: 密钥
labelEn: Secret
required: true
type: text
- default: "http://localhost:8000"
edit: true
envKey: WOODPECKER_HOST
labelZh: 访问地址
labelEn: Host Address
required: true
type: text
- default: "false"
edit: true
envKey: WOODPECKER_OPEN
labelZh: 是否允许注册
labelEn: Allow registration
required: true
type: select
values:
- label: 允许
value: "true"
- label: 禁止
value: "false"
- default: ""
edit: true
envKey: WOODPECKER_ADMIN
labelZh: 管理员账户列表
labelEn: Administrator account list
required: false
type: text
- default: ""
edit: true
envKey: WOODPECKER_ORGS
labelZh: 组织列表
labelEn: Organization list
required: false
type: text
- default: ""
edit: true
envKey: WOODPECKER_PLUGINS_PRIVILEGED
labelZh: 特权插件
labelEn: Privileged plugins
required: false
type: text
- default: "72h"
edit: true
envKey: WOODPECKER_SESSION_EXPIRES
labelZh: 登录过期时间
labelEn: Login expiration time
required: true
type: text
- default: ""
edit: true
envKey: HTTP_PROXY
labelZh: HTTP 代理
labelEn: HTTP proxy
required: false
type: text
- default: "false"
edit: true
envKey: WOODPECKER_GITHUB
labelZh: GitHub 集成
labelEn: GitHub Forges
required: true
type: select
values:
- label: 启用
value: "true"
- label: 禁用
value: "false"
- default: ""
edit: true
envKey: WOODPECKER_GITHUB_CLIENT
labelZh: GitHub 客户端 ID
labelEn: GitHub client ID
required: false
type: text
- default: ""
edit: true
envKey: WOODPECKER_GITHUB_SECRET
labelZh: GitHub 客户端密钥
labelEn: GitHub client secret
required: false
type: text
- default: "false"
edit: true
envKey: WOODPECKER_GITEA
labelZh: Gitea 集成
labelEn: Gitea Forges
required: true
type: select
values:
- label: 启用
value: "true"
- label: 禁用
value: "false"
- default: ""
edit: true
envKey: WOODPECKER_GITEA_URL
labelZh: Gitea 地址
labelEn: Gitea URL
required: false
type: text
- default: ""
edit: true
envKey: WOODPECKER_GITEA_CLIENT
labelZh: Gitea 客户端 ID
labelEn: Gitea client ID
required: false
type: text
- default: ""
edit: true
envKey: WOODPECKER_GITEA_SECRET
labelZh: Gitea 客户端密钥
labelEn: Gitea client secret
required: false
type: text
- default: "false"
edit: true
envKey: WOODPECKER_FORGEJO
labelZh: Forgejo 集成
labelEn: Forgejo Forges
required: true
type: select
values:
- label: 启用
value: "true"
- label: 禁用
value: "false"
- default: ""
edit: true
envKey: WOODPECKER_FORGEJO_URL
labelZh: Forgejo 地址
labelEn: Forgejo URL
required: false
type: text
- default: ""
edit: true
envKey: WOODPECKER_FORGEJO_CLIENT
labelZh: Forgejo 客户端 ID
labelEn: Forgejo client ID
required: false
type: text
- default: ""
edit: true
envKey: WOODPECKER_FORGEJO_SECRET
labelZh: Forgejo 客户端密钥
labelEn: Forgejo client secret
required: false
type: text
- default: "false"
edit: true
envKey: WOODPECKER_GITLAB
labelZh: GitLab 集成
labelEn: GitLab Forges
required: true
type: select
values:
- label: 启用
value: "true"
- label: 禁用
value: "false"
- default: ""
edit: true
envKey: WOODPECKER_GITLAB_URL
labelZh: GitLab 地址
labelEn: GitLab URL
required: false
type: text
- default: ""
edit: true
envKey: WOODPECKER_GITLAB_CLIENT
labelZh: GitLab 客户端 ID
labelEn: GitLab client ID
required: false
type: text
- default: ""
edit: true
envKey: WOODPECKER_GITLAB_SECRET
labelZh: GitLab 客户端密钥
labelEn: GitLab client secret
required: false
type: text
- default: "false"
edit: true
envKey: WOODPECKER_BITBUCKET
labelZh: Bitbucket 集成
labelEn: Bitbucket Forges
required: true
type: select
values:
- label: 启用
value: "true"
- label: 禁用
value: "false"
- default: ""
edit: true
envKey: WOODPECKER_BITBUCKET_CLIENT
labelZh: Bitbucket 客户端 ID
labelEn: Bitbucket client ID
required: false
type: text
- default: ""
edit: true
envKey: WOODPECKER_BITBUCKET_SECRET
labelZh: Bitbucket 客户端密钥
labelEn: Bitbucket client secret
required: false
type: text
@@ -0,0 +1,25 @@
networks:
1panel-network:
external: true
services:
woodpecker-server:
container_name: woodpecker-server
env_file:
- ./envs/global.env
- .env
environment:
- TZ=Asia/Shanghai
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
- HTTPS_PROXY=${HTTP_PROXY}
- NO_PROXY=127.0.0.1,localhost,.local,woodpecker-server,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
image: woodpeckerci/woodpecker-server:v3.15.0
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:8000
- ${PANEL_APP_PORT_GRPC}:9000
restart: always
volumes:
- ${WOODPECKER_ROOT_PATH}/server:/var/lib/woodpecker/
@@ -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,21 @@
#!/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
DATA_DIR="$WOODPECKER_ROOT_PATH"
chmod -R 777 "$DATA_DIR"
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