mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-03-22 02:29:08 +00:00
Fix issue with pushing podman image to repo name and org (#771)
If destination doesn't have image, but only repo name and org, complete with image name and tag. Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
parent
abb667546c
commit
4cb8404b7b
2 changed files with 49 additions and 0 deletions
|
|
@ -99,6 +99,52 @@
|
|||
- "'authentication required' in img_result4.stderr"
|
||||
- "'push testimage2:testtag quay.io/testing/testimage' in img_result4.actions"
|
||||
|
||||
- containers.podman.podman_image:
|
||||
name: testimage2
|
||||
tag: testtag
|
||||
pull: false
|
||||
push: true
|
||||
push_args:
|
||||
dest: quay.io/testing
|
||||
ignore_errors: true
|
||||
register: img_result4a
|
||||
|
||||
- name: Check outputs
|
||||
assert:
|
||||
that:
|
||||
- "'authentication required' in img_result4a.stderr"
|
||||
- "'push testimage2:testtag quay.io/testing/testimage2:testtag' in img_result4a.actions"
|
||||
|
||||
- containers.podman.podman_image:
|
||||
name: testimage2:testtag
|
||||
pull: false
|
||||
push: true
|
||||
push_args:
|
||||
dest: quay.io/testing/
|
||||
ignore_errors: true
|
||||
register: img_result4b
|
||||
|
||||
- name: Check outputs
|
||||
assert:
|
||||
that:
|
||||
- "'authentication required' in img_result4b.stderr"
|
||||
- "'push testimage2:testtag quay.io/testing/testimage2:testtag' in img_result4b.actions"
|
||||
|
||||
- containers.podman.podman_image:
|
||||
name: testimage2
|
||||
pull: false
|
||||
push: true
|
||||
push_args:
|
||||
dest: quay.io/testing/
|
||||
ignore_errors: true
|
||||
register: img_result4c
|
||||
|
||||
- name: Check outputs
|
||||
assert:
|
||||
that:
|
||||
- "'authentication required' in img_result4c.stderr"
|
||||
- "'push testimage2:latest quay.io/testing/testimage2:latest' in img_result4c.actions"
|
||||
|
||||
- containers.podman.podman_image:
|
||||
name: testimage2
|
||||
pull: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue