diff --git a/appstore/woodpecker/3.12.0/.env b/appstore/woodpecker/3.12.0/.env new file mode 100644 index 000000000..ec58d30e4 --- /dev/null +++ b/appstore/woodpecker/3.12.0/.env @@ -0,0 +1,30 @@ +# 数据持久化路径 [必填] +WOODPECKER_ROOT_PATH=/home/woodpecker + +# WebUI 端口 [必填] +PANEL_APP_PORT_HTTP=8000 + +# 密钥 [必填] +WOODPECKER_AGENT_SECRET= + +# 访问地址 [必填] +WOODPECKER_HOST=http://localhost:8000 + +# 最大任务数 [必填] +WOODPECKER_MAX_WORKFLOWS=4 + +# 是否允许注册 [必填] +WOODPECKER_OPEN=false + +# 管理员账户列表 +WOODPECKER_ADMIN= + +# 组织列表 +WOODPECKER_ORGS= + +# 登录过期时间 [必填] +WOODPECKER_SESSION_EXPIRES=72h + +# 操作系统主机名 [必填] +WOODPECKER_HOSTNAME= + diff --git a/appstore/woodpecker/3.12.0/data.yml b/appstore/woodpecker/3.12.0/data.yml new file mode 100644 index 000000000..19ec64401 --- /dev/null +++ b/appstore/woodpecker/3.12.0/data.yml @@ -0,0 +1,78 @@ +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: "72h" + edit: true + envKey: WOODPECKER_SESSION_EXPIRES + labelZh: 登录过期时间 + labelEn: Login expiration time + required: true + type: text + - default: "" + edit: true + envKey: WOODPECKER_HOSTNAME + labelZh: 操作系统主机名 + labelEn: Operating system host name + required: true + type: text diff --git a/appstore/woodpecker/3.12.0/docker-compose.yml b/appstore/woodpecker/3.12.0/docker-compose.yml new file mode 100644 index 000000000..7553c7dff --- /dev/null +++ b/appstore/woodpecker/3.12.0/docker-compose.yml @@ -0,0 +1,46 @@ +networks: + 1panel-network: + external: true +services: + woodpecker-agent: + command: agent + depends_on: + - woodpecker-server + env_file: + - ./envs/global.env + - .env + environment: + - WOODPECKER_SERVER=woodpecker-server:9000 + - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} + image: woodpeckerci/woodpecker-agent:v3.12.0 + networks: + - 1panel-network + restart: always + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - ${WOODPECKER_ROOT_PATH}/agent:/etc/woodpecker + woodpecker-server: + container_name: woodpecker + env_file: + - ./envs/global.env + - .env + environment: + - TZ=Asia/Shanghai + - WOODPECKER_OPEN=true + - WOODPECKER_SERVER_ADDR=:8000 + - WOODPECKER_GRPC_ADDR=:9000 + - WOODPECKER_HOST=${WOODPECKER_HOST} + - WOODPECKER_GITHUB=true + - WOODPECKER_GITHUB_CLIENT=${WOODPECKER_GITHUB_CLIENT} + - WOODPECKER_GITHUB_SECRET=${WOODPECKER_GITHUB_SECRET} + - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} + image: woodpeckerci/woodpecker-server:v3.12.0 + labels: + createdBy: Apps + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:8000 + restart: always + volumes: + - ${WOODPECKER_ROOT_PATH}/server:/var/lib/woodpecker/ diff --git a/appstore/woodpecker/3.12.0/envs/default.env b/appstore/woodpecker/3.12.0/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/appstore/woodpecker/3.12.0/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/appstore/woodpecker/3.12.0/envs/global.env b/appstore/woodpecker/3.12.0/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/appstore/woodpecker/3.12.0/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/appstore/woodpecker/3.12.0/scripts/init.sh b/appstore/woodpecker/3.12.0/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/appstore/woodpecker/3.12.0/scripts/init.sh @@ -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 diff --git a/appstore/woodpecker/3.12.0/scripts/uninstall.sh b/appstore/woodpecker/3.12.0/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/appstore/woodpecker/3.12.0/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/appstore/woodpecker/3.12.0/scripts/upgrade.sh b/appstore/woodpecker/3.12.0/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/appstore/woodpecker/3.12.0/scripts/upgrade.sh @@ -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 diff --git a/appstore/woodpecker/README.md b/appstore/woodpecker/README.md new file mode 100644 index 000000000..99f969b31 --- /dev/null +++ b/appstore/woodpecker/README.md @@ -0,0 +1,20 @@ +# Woodpecker (啄木鸟) + +简单而强大的CI/CD引擎,具有很强的可扩展性 + +![Woodpecker](https://file.lifebus.top/imgs/app_name_cover.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 特性 + ++ 开源且免费 + ++ 基于 Docker 容器 + ++ 多工作流程 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) +![Ms Studio](https://analytics.lifebus.top/p/wJix5nI1W) diff --git a/appstore/woodpecker/data.yml b/appstore/woodpecker/data.yml new file mode 100644 index 000000000..b5ecf3ad4 --- /dev/null +++ b/appstore/woodpecker/data.yml @@ -0,0 +1,16 @@ +additionalProperties: + key: woodpecker + name: Woodpecker (啄木鸟) + tags: + - WebSite + - Local + shortDescZh: 啄木鸟是一个简单而强大的CI/CD引擎,具有很强的可扩展性 + shortDescEn: Woodpecker is a simple, yet powerful CI/CD engine with great extensibility + type: website + crossVersionUpdate: true + limit: 0 + website: https://woodpecker-ci.org/ + github: https://github.com/woodpecker-ci/woodpecker/ + document: https://woodpecker-ci.org/ + architectures: + - amd64 diff --git a/appstore/woodpecker/logo.png b/appstore/woodpecker/logo.png new file mode 100644 index 000000000..2782883f6 Binary files /dev/null and b/appstore/woodpecker/logo.png differ diff --git a/appstore/woodpecker/logo.svg b/appstore/woodpecker/logo.svg new file mode 100644 index 000000000..1cd49a8f9 --- /dev/null +++ b/appstore/woodpecker/logo.svg @@ -0,0 +1,10 @@ + + + + diff --git a/dockge/woodpecker/.env b/dockge/woodpecker/.env new file mode 100644 index 000000000..ec58d30e4 --- /dev/null +++ b/dockge/woodpecker/.env @@ -0,0 +1,30 @@ +# 数据持久化路径 [必填] +WOODPECKER_ROOT_PATH=/home/woodpecker + +# WebUI 端口 [必填] +PANEL_APP_PORT_HTTP=8000 + +# 密钥 [必填] +WOODPECKER_AGENT_SECRET= + +# 访问地址 [必填] +WOODPECKER_HOST=http://localhost:8000 + +# 最大任务数 [必填] +WOODPECKER_MAX_WORKFLOWS=4 + +# 是否允许注册 [必填] +WOODPECKER_OPEN=false + +# 管理员账户列表 +WOODPECKER_ADMIN= + +# 组织列表 +WOODPECKER_ORGS= + +# 登录过期时间 [必填] +WOODPECKER_SESSION_EXPIRES=72h + +# 操作系统主机名 [必填] +WOODPECKER_HOSTNAME= + diff --git a/dockge/woodpecker/docker-compose.yml b/dockge/woodpecker/docker-compose.yml new file mode 100644 index 000000000..7553c7dff --- /dev/null +++ b/dockge/woodpecker/docker-compose.yml @@ -0,0 +1,46 @@ +networks: + 1panel-network: + external: true +services: + woodpecker-agent: + command: agent + depends_on: + - woodpecker-server + env_file: + - ./envs/global.env + - .env + environment: + - WOODPECKER_SERVER=woodpecker-server:9000 + - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} + image: woodpeckerci/woodpecker-agent:v3.12.0 + networks: + - 1panel-network + restart: always + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - ${WOODPECKER_ROOT_PATH}/agent:/etc/woodpecker + woodpecker-server: + container_name: woodpecker + env_file: + - ./envs/global.env + - .env + environment: + - TZ=Asia/Shanghai + - WOODPECKER_OPEN=true + - WOODPECKER_SERVER_ADDR=:8000 + - WOODPECKER_GRPC_ADDR=:9000 + - WOODPECKER_HOST=${WOODPECKER_HOST} + - WOODPECKER_GITHUB=true + - WOODPECKER_GITHUB_CLIENT=${WOODPECKER_GITHUB_CLIENT} + - WOODPECKER_GITHUB_SECRET=${WOODPECKER_GITHUB_SECRET} + - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} + image: woodpeckerci/woodpecker-server:v3.12.0 + labels: + createdBy: Apps + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:8000 + restart: always + volumes: + - ${WOODPECKER_ROOT_PATH}/server:/var/lib/woodpecker/ diff --git a/dockge/woodpecker/envs/default.env b/dockge/woodpecker/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/dockge/woodpecker/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/dockge/woodpecker/envs/global.env b/dockge/woodpecker/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/dockge/woodpecker/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai