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.
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


琼杰笔记




评论前必须登录!
注册