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

17 lines
443 B
YAML

---
- hosts: localhost
tasks:
- name: Get list of images
shell: "jq -c '.[]' {{ loop_source }}"
register: data
- set_fact:
image_async_batch_size: 2
stage: "default"
- include_tasks: ./roles/images/tasks/main.yaml
when: data.stdout_lines |length > 0
loop: "{{ data.stdout_lines | map('from_json') | batch(image_async_batch_size) | list }}"
loop_control:
loop_var: "images"