mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-03 23:01:48 +00:00
Add new 6 version in CI (#989)
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
parent
b1a60bf8b7
commit
4e0cdb35b7
4 changed files with 16 additions and 0 deletions
|
|
@ -118,6 +118,7 @@
|
|||
|
||||
- name: Get podman version
|
||||
shell: |
|
||||
podman version || true
|
||||
podman version
|
||||
buildah version
|
||||
podman info --debug
|
||||
|
|
|
|||
|
|
@ -20,6 +20,11 @@
|
|||
podman_version: 5
|
||||
when: podman_v.stdout is version('5.0.0', '>=')
|
||||
|
||||
- name: Set podman version to 6
|
||||
set_fact:
|
||||
podman_version: 6
|
||||
when: podman_v.stdout is version('6.0.0', '>=')
|
||||
|
||||
- name: Delete all container leftovers from tests
|
||||
containers.podman.podman_container:
|
||||
executable: "{{ test_executable | default('podman') }}"
|
||||
|
|
|
|||
|
|
@ -19,6 +19,11 @@
|
|||
podman_version: 5
|
||||
when: podman_v.stdout is version('5.0.0', '>=')
|
||||
|
||||
- name: Set podman version to 6
|
||||
set_fact:
|
||||
podman_version: 6
|
||||
when: podman_v.stdout is version('6.0.0', '>=')
|
||||
|
||||
- name: Prepare a container
|
||||
include_tasks: build_test_container.yml
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,11 @@
|
|||
podman_version: 5
|
||||
when: podman_v.stdout is version('5.0.0', '>=')
|
||||
|
||||
- name: Set podman version to 6
|
||||
set_fact:
|
||||
podman_version: 6
|
||||
when: podman_v.stdout is version('6.0.0', '>=')
|
||||
|
||||
- name: Discover cgroups version
|
||||
shell: podman info | grep cgroupVersion | awk {'print $2'}
|
||||
register: cgroups
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue