feat(odoo_repos): checkout branch
This commit is contained in:
2 files changed
+9
-9
No files matched your search
@@ -17,13 +17,13 @@ odoo_repos:
|
||||
version: 937dc76d00362181fae12e623758d18321e15e5e
|
||||
- path: addons/partner-contact
|
||||
url: git@github.com:OCA/partner-contact.git
|
||||
version: 16.0
|
||||
version: 16.0 # default: version of odoo_revision
|
||||
- path: addons/web
|
||||
url: git@github.com:OCA/web.git
|
||||
version: 16.0
|
||||
- path: addons/mint-system-server-tools
|
||||
url: git@github.com:Mint-System/Odoo-Apps-Server-Tools.git
|
||||
version: 16.0
|
||||
head: 17.0-mig-session_db # default: version of odoo_revision
|
||||
single_branch: false
|
||||
```
|
||||
|
||||
And include it in your playbook.
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
repo: "{{ item.url }}"
|
||||
dest: "{{ odoo_data_dir }}/{{ item.path }}"
|
||||
key_file: "{{ odoo_repo_key_file }}"
|
||||
version: "{{ odoo_version }}"
|
||||
version: "{{ item.version | default(odoo_version) }}"
|
||||
single_branch: "{{ item.single_branch | default(true) }}"
|
||||
accept_hostkey: true
|
||||
force: true
|
||||
@@ -24,8 +24,8 @@
|
||||
repo: "{{ item.url }}"
|
||||
dest: "{{ odoo_data_dir }}/{{ item.path }}"
|
||||
key_file: "{{ odoo_repo_key_file }}"
|
||||
version: "{{ item.version }}"
|
||||
refspec: +refs/heads/{{ odoo_version }}:refs/remotes/origin/{{ odoo_version }}
|
||||
version: "{{ item.head | default(item.version | default(odoo_version)) }}"
|
||||
refspec: +refs/heads/{{ item.branch | default(odoo_version) }}:refs/remotes/origin/{{ item.branch | default(odoo_version) }}
|
||||
accept_hostkey: true
|
||||
force: true
|
||||
when: item.url is regex('git@') and odoo_repo_key_file is defined
|
||||
@@ -36,7 +36,7 @@
|
||||
ansible.builtin.git:
|
||||
repo: "{{ item.url }}"
|
||||
dest: "{{ odoo_data_dir }}/{{ item.path }}"
|
||||
version: "{{ odoo_version }}"
|
||||
version: "{{ item.version | default(odoo_version) }}"
|
||||
single_branch: "{{ item.single_branch | default(true) }}"
|
||||
accept_hostkey: true
|
||||
force: true
|
||||
@@ -47,8 +47,8 @@
|
||||
ansible.builtin.git:
|
||||
repo: "{{ item.url }}"
|
||||
dest: "{{ odoo_data_dir }}/{{ item.path }}"
|
||||
version: "{{ item.version }}"
|
||||
refspec: +refs/heads/{{ odoo_version }}:refs/remotes/origin/{{ odoo_version }}
|
||||
version: "{{ item.head | default(item.version | default(odoo_version)) }}"
|
||||
single_branch: "{{ item.single_branch | default(true) }}"
|
||||
accept_hostkey: true
|
||||
force: true
|
||||
when: item.url is regex('https://') and github_username is defined
|
||||
|
||||
Reference in new issue
Block a user