- Ansible:
sudo apt install ansiblegit clone --recurse-submodules https://github.com/nguyenhieu/hpc_root.git
cd hpc_rootNote
Sau khi clone thì tất cả các microservice sẽ có trong thư mục hpc_root.
ansible-playbook deploy.ymlgit pull --recurse-submodules- VD: Cần sửa code trong System-Management
- Đi vào service và
checkoutnhánh:
cd System-Management
git checkout main # hoặc nhánh mà nhóm dùng idk
git pull origin main- Code,
commitandpush(Trong microservice của mình):
# Code xong
git add .
git commit -m "viet j do"
git push origin main- Cập nhật Root Repo:
cd .. # quay ra hpc_root
git status
git add System-Management
git commit -m "Update System-Management to latest version"
git push origin main