mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
Processed apps directory via GitHub Actions
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# 数据持久化路径 [必填]
|
||||
GITEA_RUNNER_ROOT_PATH=/home/gitea
|
||||
|
||||
# Gitea 实例 URL [必填]
|
||||
GITEA_INSTANCE_URL=
|
||||
|
||||
# 注册令牌 [必填]
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN=
|
||||
|
||||
# Runner 名称 [必填]
|
||||
GITEA_RUNNER_NAME=
|
||||
|
||||
# Runner 标签 [必填]
|
||||
GITEA_RUNNER_LABELS=
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/gitea"
|
||||
edit: true
|
||||
envKey: GITEA_RUNNER_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: GITEA_INSTANCE_URL
|
||||
labelZh: Gitea 实例 URL
|
||||
labelEn: Gitea instance URL
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||
labelZh: 注册令牌
|
||||
labelEn: Registration token
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: GITEA_RUNNER_NAME
|
||||
labelZh: Runner 名称
|
||||
labelEn: Runner name
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: GITEA_RUNNER_LABELS
|
||||
labelZh: Runner 标签
|
||||
labelEn: Runner labels
|
||||
required: true
|
||||
type: text
|
||||
@@ -0,0 +1,21 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
gitea:
|
||||
container_name: gitea-runner
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
image: gitea/act_runner:0.2.11
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- 1panel-network
|
||||
privileged: true
|
||||
restart: always
|
||||
volumes:
|
||||
- ${GITEA_RUNNER_ROOT_PATH}/data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
@@ -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,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .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,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -0,0 +1,87 @@
|
||||
# Gitea
|
||||
|
||||
Gitea 是一个轻量级的 DevOps 平台软件。
|
||||
|
||||

|
||||
|
||||
Gitea 是一个轻量级的 DevOps 平台软件。从开发计划到产品成型的整个软件生命周期,他都能够高效而轻松的帮助团队和开发者。包括
|
||||
Git 托管、代码审查、团队协作、软件包注册和 CI/CD。它与 GitHub、Bitbucket 和 GitLab 等比较类似。 Gitea 最初是从 Gogs
|
||||
分支而来,几乎所有代码都已更改。
|
||||
|
||||

|
||||
|
||||
## 安装说明
|
||||
|
||||
<div style="border: 1px solid #FFC107; padding: 10px; border-radius: 5px; color: #856404; background-color: #FFF3CD; display: inline-block; width: 100%; max-width: 60%; margin-top: 10px;">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<span style="font-size: 24px; margin-right: 8px;">⚠️</span>
|
||||
<div>
|
||||
<strong style="font-size: 16px;">警告</strong><br>
|
||||
<span style="font-size: 14px; color: #333;">该应用申请使用 `特权模式`, 将允许应用在容器内部执行特权操作,如挂载宿主机目录、访问宿主机设备等。</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
这是Gitea Actions的Runner,用于在Gitea Actions中执行任务。
|
||||
|
||||
## 特性
|
||||
|
||||
+ 代码托管
|
||||
|
||||
Gitea⽀持创建和管理仓库、浏览提交历史和代码⽂件、审查和合并代码提交、管理协作者、管理分⽀等。它还⽀持许多常见的Git特性,⽐如标签、Cherry-pick、hook、集成协作⼯具等。
|
||||
|
||||
+ 轻量级和快速
|
||||
|
||||
Gitea 的设计目标之一就是轻量级和快速响应。它不像一些大型的代码托管平台那样臃肿,因此在性能方面表现出色,适用于资源有限的服务器环境。由于其轻量级设计,Gitea
|
||||
在资源消耗方面相对较低,可以在资源有限的环境下运行良好。
|
||||
|
||||
+ 易于部署和维护
|
||||
|
||||
轻松地部署在各种服务器上,不需要复杂的配置和依赖。这使得个人开发者或小团队可以方便地设置和管理自己的 Git 服务。
|
||||
|
||||
+ 安全性
|
||||
|
||||
Gitea 注重安全性,提供了用户权限管理、访问控制列表等功能,可以确保代码和数据的安全性。
|
||||
|
||||
+ 代码评审
|
||||
|
||||
代码评审同时支持 Pull Request workflow 和 AGit workflow。评审⼈可以在线浏览代码,并提交评审意见或问题。 提交者可以接收到评审意见,并在线回
|
||||
复或修改代码。代码评审可以帮助用户和企业提⾼代码质量。
|
||||
|
||||
+ CI/CD
|
||||
|
||||
Gitea Actions⽀持 CI/CD 功能,该功能兼容 GitHub Actions,⽤⼾可以采用熟悉的YAML格式编写workflows,也可以重⽤⼤量的已有的 Actions
|
||||
插件。Actions 插件支持从任意的 Git 网站中下载。
|
||||
|
||||
项目管理:Gitea 通过看板和⼯单来跟踪⼀个项⽬的需求,功能和bug。⼯单⽀持分支,标签、⾥程碑、 指派、时间跟踪、到期时间、依赖关系等功能。
|
||||
|
||||
+ 制品库
|
||||
|
||||
Gitea支持超过 20 种不同种类的公有或私有软件包管理,包括:Cargo, Chef, Composer, Conan, Conda, Container, Helm, Maven, npm,
|
||||
NuGet, Pub, PyPI, RubyGems, Vagrant等
|
||||
|
||||
+ 开源社区支持
|
||||
|
||||
Gitea 是一个基于 MIT 许可证的开源项目,Gitea 拥有一个活跃的开源社区,能够持续地进行开发和改进,同时也积极接受社区贡献,保持了平台的更新和创新。
|
||||
|
||||
+ 多语言支持
|
||||
|
||||
Gitea 提供多种语言界面,适应全球范围内的用户,促进了国际化和本地化。
|
||||
|
||||
## 反向代理
|
||||
|
||||
> Nginx
|
||||
|
||||
```nginx
|
||||
location / {
|
||||
proxy_pass http://localhost:3000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||

|
||||
@@ -0,0 +1,16 @@
|
||||
additionalProperties:
|
||||
key: gitea-runner
|
||||
name: Gitea Runner
|
||||
tags:
|
||||
- WebSite
|
||||
- DevOps
|
||||
- Storage
|
||||
- Local
|
||||
shortDescZh: 新一代的代码托管平台
|
||||
shortDescEn: The next generation of code hosting platform
|
||||
type: website
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
website: https://gitea.io/
|
||||
github: https://github.com/go-gitea/gitea/
|
||||
document: https://docs.gitea.io/
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 7.8 KiB |
Reference in New Issue
Block a user