Svetlana Shturm bf4c745a05 Support multiple charts/images in development-pipeline
Change-Id: I4eb8a0cc8720f67cb7215086b059fb4a7ea52201
2021-02-16 16:50:40 -06:00

27 lines
727 B
YAML

#Build docker image using Makefile given git repository location to clone code from
- set_fact:
_async: "{{ git_async | default(600) }}"
_delay: "{{ git_check_status_delay | default(3) }}"
- name: Run async git clone
git:
repo: "{{ repo.build.repo }}"
dest: "{{ repo.build.target_loc }}"
version: "{{ repo.build.refspec }}"
refspec: "refs/changes/*:refs/changes/*"
async: "{{ _async }}"
poll: 0
loop: "{{ repos }}"
loop_control:
loop_var: "repo"
register: git_async_results
when:
- stage == "clone"
- name: Wait for git clone results
vars:
async_results: "{{ git_async_results }}"
include_tasks: ./roles/common/tasks/check_sync_status.yaml
when:
- stage == "clone"