Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI/CD 流程参考 #2

Closed
arvinxx opened this issue Aug 18, 2023 · 1 comment
Closed

CI/CD 流程参考 #2

arvinxx opened this issue Aug 18, 2023 · 1 comment

Comments

@arvinxx
Copy link
Contributor

arvinxx commented Aug 18, 2023

参考:https://github.com/AUTOMATIC1111/stable-diffusion-webui-extensions

这个仓库是一个插件市场的实现,主要有以下特点:

  1. 索引文件:该插件市场通过访问仓库中的index.json文件来向用户展示可用的插件列表。

  2. 提交插件:如果希望添加插件到索引中,需要在extensions目录中使用extension_template.json作为模板创建一个新的条目,编写简短的描述和适当的标签,然后提交pull request。

  3. 自动化流程:插件的pull request目标是extensions分支,合并后会自动组装并部署到master分支,这个过程由GitHub Actions自动化完成。

  4. 标签系统:提供了一系列的标签和对应的描述,如online、ads、localization和installed等。

  5. 插件审核:提交的插件需要是功能正常的,如果插件不再维护或者功能失效,可能会被重定向到一个分叉或者从索引中移除。所有的插件都会经过审核。

  6. 插件移除和修改:如果希望移除你的插件,或者认为描述不准确,可以提交issue或者pull request。

@arvinxx
Copy link
Contributor Author

arvinxx commented Aug 18, 2023

插件市场元数据实现:

基于上述特性,我们可以构建类似的插件市场模式,主要步骤如下:

  1. 创建一个仓库,用于存放插件的索引文件和插件的描述文件。

  2. 设计一个插件描述文件的模板,包含插件的基本信息,如名称、版本、描述、标签等。

  3. 提供一个提交插件的流程,如通过pull request提交插件描述文件。

  4. 设计一个自动化流程,如使用GitHub Actions自动处理pull request,更新插件索引文件。

  5. 设计一个插件审核流程,确保提交的插件是功能正常的。

  6. 提供一个插件管理的方式,如通过issue或者pull request提交插件的移除或者修改请求。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant