Force-build customized container image when its Dockerfile changes
This commit is contained in:
parent
dc10682805
commit
4b1e795caf
1 changed files with 2 additions and 0 deletions
|
@ -54,11 +54,13 @@
|
||||||
owner: "{{ nextcloud_uid }}"
|
owner: "{{ nextcloud_uid }}"
|
||||||
group: "{{ nextcloud_gid }}"
|
group: "{{ nextcloud_gid }}"
|
||||||
mode: 0640
|
mode: 0640
|
||||||
|
register: nextcloud_container_image_customizations_dockerfile_result
|
||||||
|
|
||||||
- name: Ensure customized container image for Nextcloud is built
|
- name: Ensure customized container image for Nextcloud is built
|
||||||
community.docker.docker_image:
|
community.docker.docker_image:
|
||||||
name: "{{ nextcloud_container_image_customized }}"
|
name: "{{ nextcloud_container_image_customized }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ nextcloud_container_image_customizations_dockerfile_result.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ nextcloud_customized_container_src_path }}"
|
path: "{{ nextcloud_customized_container_src_path }}"
|
||||||
|
|
Loading…
Reference in a new issue