Commit 64facf1b by Clinton Blackburn Committed by Clinton Blackburn

Performing shallow clone of Git repos

This should help decrease build times.

ECOM-6600
parent 10c87e65
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
version: "{{ item.VERSION }}" version: "{{ item.VERSION }}"
accept_hostkey: yes accept_hostkey: yes
key_file: "{{ git_home }}/.ssh/{{ item.REPO }}" key_file: "{{ git_home }}/.ssh/{{ item.REPO }}"
depth: 1
become_user: "{{ repo_owner }}" become_user: "{{ repo_owner }}"
register: code_checkout register: code_checkout
when: item.PROTOCOL == "ssh" and GIT_REPOS is defined when: item.PROTOCOL == "ssh" and GIT_REPOS is defined
...@@ -75,6 +76,7 @@ ...@@ -75,6 +76,7 @@
repo: "https://{{ item.DOMAIN }}/{{ item.PATH }}/{{ item.REPO }}" repo: "https://{{ item.DOMAIN }}/{{ item.PATH }}/{{ item.REPO }}"
dest: "{{ item.DESTINATION }}" dest: "{{ item.DESTINATION }}"
version: "{{ item.VERSION }}" version: "{{ item.VERSION }}"
depth: 1
become_user: "{{ repo_owner }}" become_user: "{{ repo_owner }}"
register: code_checkout register: code_checkout
when: item.PROTOCOL == "https" and GIT_REPOS is defined when: item.PROTOCOL == "https" and GIT_REPOS is defined
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment