Update app version [skip ci]

This commit is contained in:
github-action update-app-version
2026-05-28 15:09:35 +00:00
parent 488c36b7f7
commit 6780fb618d
7 changed files with 0 additions and 0 deletions
+236
View File
@@ -0,0 +1,236 @@
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: ""
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: 4
edit: true
envKey: WOODPECKER_MAX_WORKFLOWS
labelZh: 最大任务数
labelEn: Maximum number of tasks
required: true
type: number
- 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
+46
View File
@@ -0,0 +1,46 @@
networks:
1panel-network:
external: true
services:
woodpecker-server:
image: woodpeckerci/woodpecker-server:v3.15.0
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:8000
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${WOODPECKER_ROOT_PATH}/server:/var/lib/woodpecker/
environment:
- TZ=Asia/Shanghai
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
- HTTPS_PROXY=${HTTP_PROXY}
- NO_PROXY=127.0.0.1,localhost,.local,woodpecker-server,woodpecker-agent,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
woodpecker-agent:
depends_on:
- woodpecker-server
image: woodpeckerci/woodpecker-agent:v3.14.1
container_name: agent-${CONTAINER_NAME}
command: agent
restart: always
networks:
- 1panel-network
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${WOODPECKER_ROOT_PATH}/agent:/etc/woodpecker
environment:
- WOODPECKER_SERVER=woodpecker-server:9000
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
- HTTPS_PROXY=${HTTP_PROXY}
- NO_PROXY=127.0.0.1,localhost,.local,woodpecker-server,woodpecker-agent,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
+21
View File
@@ -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
+17
View File
@@ -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