Question about git structuring, continuous deployment and updating

First of all you don’t need to do anything with git and frappe, erpnext, or bench unless you are contributing.

The only git you deal with is your custom app. Which flow you use is your choice as you’ve complete control over your custom app. bench new-app will create app as a git repo by default.

I prefer:

  • “main” branch as only branch. Features are on merge requests. Acts as edge, nightly, latest
  • Use git semver tags and a release script that bumps up __init__.py to make versioned production releases.
  • On merging to main, latest images are built, optionally deployed on UAT.
  • On tagging, tagged version of images are built. Manually trigger deploy of tagged images to production.

Advance stuff:

3 Likes