docker/build.yaml
2021-02-01 21:18:21 +03:00

22 lines
501 B
YAML

- hosts: localhost
connection: local
tasks:
- name: Find all dirs
find:
paths: .
file_type: directory
recurse: false
register: dirs
- debug:
msg: "{{ item.path }}"
loop: "{{ dirs.files }}"
- name: Build image
community.general.make:
chdir: "{{ item }}"
target: "{{ target | default('all') }}"
params:
REGISTRY: "{{ registry | default('registry.0xace.cc/ghp') }}"
loop: "{{ dirs.files | map(attribute='path') | list }}"