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
+12
View File
@@ -0,0 +1,12 @@
# 数据持久化路径 [必填]
WOODPECKER_ROOT_PATH=/home/woodpecker
# Woodpecker GRPC 服务地址 [必填]
WOODPECKER_SERVER=localhost:9000
# 密钥 [必填]
WOODPECKER_AGENT_SECRET=
# 最大任务数 [必填]
WOODPECKER_MAX_WORKFLOWS=4
+30
View File
@@ -0,0 +1,30 @@
additionalProperties:
formFields:
- default: "/home/woodpecker"
edit: true
envKey: WOODPECKER_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: "localhost:9000"
edit: true
envKey: WOODPECKER_SERVER
labelZh: Woodpecker GRPC 服务地址
labelEn: Woodpecker server GRPC address
required: true
type: text
- default: ""
edit: true
envKey: WOODPECKER_AGENT_SECRET
labelZh: 密钥
labelEn: Secret
required: true
type: text
- default: 4
edit: true
envKey: WOODPECKER_MAX_WORKFLOWS
labelZh: 最大任务数
labelEn: Maximum number of tasks
required: true
type: number
@@ -0,0 +1,20 @@
networks:
1panel-network:
external: true
services:
woodpecker-agent:
command: agent
container_name: woodpecker-agent
env_file:
- ./envs/global.env
- .env
environment:
- HTTPS_PROXY=${HTTP_PROXY}
- NO_PROXY=127.0.0.1,localhost,.local,woodpecker-agent,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
image: woodpeckerci/woodpecker-agent:v3.15.0
networks:
- 1panel-network
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${WOODPECKER_ROOT_PATH}/agent:/etc/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