Add docker_image_tag module (#730)

* Add docker_image_tag module.

* Add check mode tests.

* Improve and test image ID/digest handling.

* Adjust more tests.
This commit is contained in:
Felix Fontein
2023-12-31 10:41:18 +01:00
committed by GitHub
parent 20e78a92e0
commit 66b341aa9e
12 changed files with 715 additions and 22 deletions
@@ -29,12 +29,15 @@
name: "{{ docker_test_image_hello_world }}"
diff: true
- name: Push image to test registry
docker_image:
- name: Tag image
docker_image_tag:
name: "{{ docker_test_image_hello_world }}"
repository: "{{ hello_world_image_base }}:latest"
push: true
source: local
repository:
- "{{ hello_world_image_base }}:latest"
- name: Push image to test registry
docker_image_push:
name: "{{ hello_world_image_base }}:latest"
- name: Get facts of local image
docker_image_info: