mcc

command module
v0.0.0-...-527d7c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

Mini CICD

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

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

  • type: server

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

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

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

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL