1
0
Fork 0

Force-build customized container image when its Dockerfile changes

This commit is contained in:
Slavi Pantaleev 2023-07-06 20:11:55 +03:00
parent dc10682805
commit 4b1e795caf

View file

@ -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 }}"