An open API service indexing awesome lists of open source software.

https://github.com/ggdream/mcc

【Mini CICD】直接在单台宿主机上进行cicd,无容器和其他任何依赖
https://github.com/ggdream/mcc

cicd golang host minimal no-docker

Last synced: 2 months ago
JSON representation

【Mini CICD】直接在单台宿主机上进行cicd,无容器和其他任何依赖

Awesome Lists containing this project

README

        

# Mini CICD

将GitHub、GitLab、Gitea等服务的Webhook打到该项目,如果是`push`消息,则会拉下对应仓库代码,并按照配置文件进行cicd。整个过程都在部署该服务的主机完成。
无容器依赖,足够轻量,方便低成本、少人力的开发流程。

在代码仓库根目录添加配置即可:`.mcc.yaml`。目前有两类CICD方案

- type: server

用来打包并部署不退出的服务,比如web server、Job等。

~~~yaml
type: server
steps:
- go mod download
- go build -o build/app
apply: ./build
command: ["./app", "-c", "./config.yaml"]
~~~

- type: static

用来打包并部署静态资源,比如前端打包后的产物

~~~yaml
type: static
steps:
- pnpm install
- pnpm run build
apply: ./dist
~~~