docker/build.yaml
2023-06-10 08:04:31 +03:00

23 lines
524 B
YAML

- hosts: localhost
gather_facts: false
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('gitea.geekhome.org/ghp') }}"
loop: "{{ dirs.files | map(attribute='path') | list }}"