分享交流
合作共赢!

A Simple CI/CD Workflow Demo

I think every company has its own unique business and tech stack, but when it comes to DevOps, the tools we use are pretty similar. So, let me put together a quick demo of a general CI/CD workflow.

  1. Application Repo
  2. Reusable workflow repo
  3. Infrastructure repo

Application

Repo link & Design Diagram & Documentation

https://github.com/zhangqiongjie/golang-app/blob/main/README.md
We just need to input the environment parameter, like “dev/staging/prod” and the parameter namespace, like “hotel” before we trigger the GHA workflow.

Screenshot

Reusable Workflow

Repo link & Design Diagram & Documentation

https://github.com/zhangqiongjie/reusable-base-workflow/blob/main/README.md

This is a common reusable workflow that other microservices are able to call directly.

Terraform Infrastructure

Repo link & Design Diagram & Documentation

https://github.com/zhangqiongjie/terraform-infrastructure/blob/main/USAGE.md

This repo maintains the Terraform code for the public cloud resources.

When we want to update the public product, we need to test in the feature branch first with dry-run mode.

If it works, we can raise a PR to the main branch. Then there is a GitHub issue raised automatically. If the issue is approved by the specific people(it’s better to have more than 2 approvals). Then the change will reflect on the real environment.

Screenshot

赞(2) 打赏
未经允许不得转载:琼杰笔记 » A Simple CI/CD Workflow Demo

评论 抢沙发

评论前必须登录!

 

分享交流,合作共赢!

联系我们加入QQ群

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏