CI: use new container images for Compose v2 pull tests (#900)

* Use simple-1 image instead of Alpine image for docker_compose_v2_pull tests.

* Use simple-1 image instead of Alpine image for docker_compose_v2 pull tests.
This commit is contained in:
Felix Fontein
2024-06-29 11:43:00 +02:00
committed by GitHub
parent 37c639f6e8
commit 7efc6381d0
3 changed files with 15 additions and 13 deletions
@@ -13,12 +13,12 @@
services:
{{ cname }}:
image: {{ non_existing_image }}
test_service_alpine: |
test_service_simple: |
version: '3'
services:
{{ cname }}:
image: {{ docker_test_image_alpine }}
command: /bin/sh -c 'sleep 10m'
image: {{ docker_test_image_simple_1 }}
command: 10m
stop_grace_period: 1s
block:
@@ -37,7 +37,7 @@
name: '{{ item }}'
loop:
- '{{ non_existing_image }}'
- '{{ docker_test_image_alpine }}'
- '{{ docker_test_image_simple_1 }}'
####################################################################
## Missing image ###################################################
@@ -72,10 +72,10 @@
## Regular image ###################################################
####################################################################
- name: Template project file with Alpine image
- name: Template project file with simple image
copy:
dest: '{{ project_src }}/docker-compose.yml'
content: '{{ test_service_alpine }}'
content: '{{ test_service_simple }}'
- when: docker_compose_version is version('2.22.0', '>=')
block:
@@ -107,7 +107,7 @@
- name: Make sure image is not around
docker_image_remove:
name: '{{ docker_test_image_alpine }}'
name: '{{ docker_test_image_simple_1 }}'
- name: Pull with policy=always (check)
docker_compose_v2_pull: