Skip to content

Deploy modules with Git (GitLab/Bitbucket/Other)

4. How to commit changes to Odoo using Git deployment on Cloudpepper

Click on Details of the Odoo instance for which you want to add a repo. This can be a production instance or a staging instance.

Odoo instance details screen in Cloudpepper

Under the details of your instance, you can go to Addons, where you can add a git repo, whether it’s private or public.

Addons section for adding a Git repository

Use the SSH Git link. Once you put in the link when adding a repository in Cloudpepper, you will receive a unique SSH Key. Add this SSH Key as a Deploy Key in Github and you’ll be able to import the modules of your repository.

SSH deploy key shown for a private Git repository

Ensure to use the SSH link on Github.

GitHub SSH clone URL for a private repository

Cloudpepper allows you to select which modules you want to install to your instance.

Select Odoo modules to install from a Git repository

The modules will be installed and can be activated on the App dashboard in your Odoo instance.

When new changes have been committed, click the “Update”-button next to your repo.

Click Settings next to your repo. You can turn on these options:

  • Auto upgrade module(s) on update: after each update, Cloudpepper upgrades every installed module whose version in __manifest__.py is higher than the version in your database. Raise the version whenever you change models, fields or data files. If it stays the same, the new code is deployed but the database is not upgraded, which causes errors such as column ... does not exist. New modules are not installed this way; install them from Apps in Odoo.
  • Install Python requirements on update: installs the packages listed in a requirements.txt file at the root of the repository. Put one package per line (for example google-auth, or google-auth==2.35.0 to pin a version), commit the file, turn this option on and click Update. Cloudpepper then installs the packages with pip into this instance’s own Python environment before Odoo restarts, and checks the file again on every update.