Skip to content

Commit

Permalink
CI: Add images removal for tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sagi Shnaidman <[email protected]>
  • Loading branch information
sshnaidm committed Aug 16, 2024
1 parent 92fe146 commit 97fbb1e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions tests/integration/targets/podman_container/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1416,10 +1416,23 @@
- "container3"
- "testidem-pod"
- "container_tls"
- "container2_tls"

- name: Remove pod
shell: podman pod rm -f testidempod
ignore_errors: true
containers.podman.podman_pod:
executable: "{{ test_executable | default('podman') }}"
name: testidempod
state: absent

- name: Remove podman images
containers.podman.podman_image:
name: "{{ item }}"
state: absent
loop:
- alpine:3.7
- alpine
- alpine:3.20
- alpine:3.12

- name: Remove temporary rootfs directory
ansible.builtin.file:
Expand Down

0 comments on commit 97fbb1e

Please sign in to comment.