My application uses 2 repositories at the same time,
- One is for the source code of a web app which is built with spring boot,
- The other one is for the yaml files which are Infrastructure as Code (IaC). You can see the other repository from here
developer +-----------+ +----------+ docker +-------------+
| REPO | | CI | push |IMAGE |
----------> | (code) |---> | PIPELINE | -------> |REGISTRY |
+-----------+ +----------+ +-------------+
^
|sync
|
+----------+ commit +----------+
|INFRA | <-------- | INFRA |
|REPO(yaml)| | (k8s) |
+----------+ +----------+