Skip to content

Repository composed of submodules

Naomichi Yamakita edited this page Mar 17, 2023 · 9 revisions

The repository to be deployed can include submodules.

|- .gitmodules
|- submodules
  |- module-a
    |- config/deploy.yml
    |- deploy
      |- production.yml
  |- module-b
    |- config/deploy.yml
    |- deploy
      |- production.yml

By specifying the branch to follow in .gitmodules, genova will always get the latest files when deploying. No other work is required.

# .gitmodules
[submodule "module-a"]
  path = module-a
  url = https://github.com/***/module-a.git
  branch = main

[submodule "module-b"]
  path = module-b
  url = https://github.com/***/module-b.git
  branch = main

If you are automating deployments with GitHub Actions/Webhook, you cannot automate deployments triggered by submodule updates.

Clone this wiki locally