Force-build customized container image for Synapse when its Dockerfile changes

This commit is contained in:
Slavi Pantaleev 2023-07-06 20:18:18 +03:00
parent 9c77486e59
commit d02f6b8b93

View File

@ -72,12 +72,13 @@
owner: "{{ matrix_synapse_uid }}"
group: "{{ matrix_synapse_gid }}"
mode: 0640
register: matrix_synapse_container_image_customizations_dockerfile_result
- name: Ensure customized Docker image for Synapse is built
community.docker.docker_image:
name: "{{ matrix_synapse_docker_image_customized }}"
source: build
force_source: "{{ matrix_synapse_docker_image_customized_force_source }}"
force_source: "{{ matrix_synapse_container_image_customizations_dockerfile_result.changed or matrix_synapse_docker_image_customized_force_source }}"
build:
dockerfile: Dockerfile
path: "{{ matrix_synapse_customized_docker_src_files_path }}"