docker/build.yaml

23 lines
522 B
YAML
Raw Normal View History

2021-01-09 18:06:20 +00:00
- hosts: localhost
2023-06-10 03:20:50 +00:00
gather_facts: false
2021-01-09 18:06:20 +00:00
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:
2023-06-10 03:20:50 +00:00
REGISTRY: "{{ registry | default('git.geekhome.org/ghp') }}"
2021-01-09 18:06:20 +00:00
loop: "{{ dirs.files | map(attribute='path') | list }}"