docker_image: always push, also when tagging is not necessary (#53)

* Always push, also when tagging is not necessary.

* Add tests.

* Fix tests.
This commit is contained in:
Felix Fontein
2020-12-26 18:20:28 +01:00
committed by GitHub
parent d40c2409d3
commit 117f132213
3 changed files with 81 additions and 3 deletions
+2 -2
View File
@@ -595,8 +595,8 @@ class ImageManager(DockerBaseClass):
if image and image['Id'] == self.results['image']['Id']:
self.results['changed'] = False
if push:
self.push_image(repo, repo_tag)
if push:
self.push_image(repo, repo_tag)
def build_image(self):
'''