Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Codecov reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Hervé Quatremain committed Aug 6, 2024
1 parent f47e953 commit f103211
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ansible-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ jobs:
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
...
6 changes: 5 additions & 1 deletion tests/integration/targets/quay_manifest_label/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# - Tagging it so that it can be pushed to the local Quay Container Registry
# - Pushing the image
# - Deleting the images from the local system
# The tasks do not use the podman collection because it may not be
# The tasks do not use the podman collection because it might not be
# available on the testing system.
- name: Ensure the image is prepared with podman
when: "podman['rc'] == 0"
Expand Down Expand Up @@ -74,6 +74,10 @@
cmd: "docker push
{{ quay_hostname }}/ansibletestorg/ansibletestrepo:latest"
changed_when: true
register: result
retries: 3
delay: 5
until: result["rc"] == 0

- name: Ensure the images are removed
ansible.builtin.command:
Expand Down
26 changes: 17 additions & 9 deletions tests/integration/targets/quay_tag/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# - Tagging it so that it can be pushed to the local Quay Container Registry
# - Pushing the image
# - Deleting the images from the local system
# The tasks do not use the podman collection because it may not be
# The tasks do not use the podman collection because it might not be
# available on the testing system.
- name: Ensure the image is prepared with podman
when: "podman['rc'] == 0"
Expand All @@ -24,25 +24,29 @@
- name: Ensure the image has the correct tag
ansible.builtin.command:
cmd: "podman tag {{ fake_image }}
{{ quay_hostname }}/ansibletestorg/ansibletestrepo:latest"
{{ quay_hostname }}/ansibletestorg/ansibletestrepo:latest"
changed_when: true

- name: Ensure podman is logged in
ansible.builtin.command:
cmd: "podman login --tls-verify=false --username {{ admin_username }}
--password {{ admin_password }} {{ quay_hostname }}"
--password {{ admin_password }} {{ quay_hostname }}"
changed_when: true

- name: Ensure the image is pushed to Quay Container Registry
ansible.builtin.command:
cmd: "podman push --tls-verify=false --remove-signatures
{{ quay_hostname }}/ansibletestorg/ansibletestrepo:latest"
{{ quay_hostname }}/ansibletestorg/ansibletestrepo:latest"
changed_when: true
register: result
retries: 3
delay: 5
until: result["rc"] == 0

- name: Ensure the images are removed
ansible.builtin.command:
cmd: "podman rmi {{ fake_image }}
{{ quay_hostname }}/ansibletestorg/ansibletestrepo:latest"
{{ quay_hostname }}/ansibletestorg/ansibletestrepo:latest"
changed_when: true

- name: Ensure the image is prepared with docker
Expand All @@ -56,25 +60,29 @@
- name: Ensure the image has the correct tag
ansible.builtin.command:
cmd: "docker tag {{ fake_image }}
{{ quay_hostname }}/ansibletestorg/ansibletestrepo:latest"
{{ quay_hostname }}/ansibletestorg/ansibletestrepo:latest"
changed_when: true

- name: Ensure docker is logged in
ansible.builtin.command:
cmd: "docker login --username {{ admin_username }}
--password {{ admin_password }} {{ quay_hostname }}"
--password {{ admin_password }} {{ quay_hostname }}"
changed_when: true

- name: Ensure the image is pushed to Quay Container Registry
ansible.builtin.command:
cmd: "docker push
{{ quay_hostname }}/ansibletestorg/ansibletestrepo:latest"
{{ quay_hostname }}/ansibletestorg/ansibletestrepo:latest"
changed_when: true
register: result
retries: 3
delay: 5
until: result["rc"] == 0

- name: Ensure the images are removed
ansible.builtin.command:
cmd: "docker rmi {{ fake_image }}
{{ quay_hostname }}/ansibletestorg/ansibletestrepo:latest"
{{ quay_hostname }}/ansibletestorg/ansibletestrepo:latest"
changed_when: true

- name: Ensure docker is logged out
Expand Down

0 comments on commit f103211

Please sign in to comment.