mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
docker_image(_push): fix push detection (#1199)
* Fix IP address retrieval for registry setup. * Adjust push detection to Docker 29. * Idempotency for export no longer works. * Disable pull idempotency checks that play with architecture. * Add more known image IDs. * Adjust load tests. * Adjust error message check. * Allow for more digests. * Make sure a new enough cryptography version is installed.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
- name: Push image ID (must fail)
|
||||
community.docker.docker_image_push:
|
||||
name: "sha256:{{ docker_test_image_digest_v1_image_id }}"
|
||||
name: "sha256:{{ docker_test_image_digest_v1_image_ids[0] }}"
|
||||
register: fail_2
|
||||
ignore_errors: true
|
||||
|
||||
|
||||
@@ -80,4 +80,6 @@
|
||||
that:
|
||||
- push_4 is failed
|
||||
- >-
|
||||
push_4.msg == ('Error pushing image ' ~ image_name_base2 ~ ':' ~ image_tag ~ ': no basic auth credentials')
|
||||
push_4.msg.startswith('Error pushing image ' ~ image_name_base2 ~ ':' ~ image_tag ~ ': ')
|
||||
- >-
|
||||
push_4.msg.endswith(': no basic auth credentials')
|
||||
|
||||
Reference in New Issue
Block a user