From 4b1e795caf0c42da20060f7ce024a9aa7f5ddbd2 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Thu, 6 Jul 2023 20:11:55 +0300 Subject: [PATCH] Force-build customized container image when its Dockerfile changes --- tasks/install.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/install.yml b/tasks/install.yml index 57e0c46..45b40bb 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -54,11 +54,13 @@ owner: "{{ nextcloud_uid }}" group: "{{ nextcloud_gid }}" mode: 0640 + register: nextcloud_container_image_customizations_dockerfile_result - name: Ensure customized container image for Nextcloud is built community.docker.docker_image: name: "{{ nextcloud_container_image_customized }}" source: build + force_source: "{{ nextcloud_container_image_customizations_dockerfile_result.changed }}" build: dockerfile: Dockerfile path: "{{ nextcloud_customized_container_src_path }}"