From ecbb69cfa0df60ea628161c5d356f226afc26014 Mon Sep 17 00:00:00 2001 From: Wey Gu Date: Tue, 16 Jul 2024 18:50:14 +0800 Subject: [PATCH] ci: drop docker compose v1 [7438] Failed to execute script docker-compose ERROR: for tests_metad1_1 'ContainerConfig' ERROR: for tests_metad2_1 'ContainerConfig' ERROR: for tests_metad0_1 'ContainerConfig' ERROR: for metad1 'ContainerConfig' ERROR: for metad2 'ContainerConfig' ERROR: for metad0 'ContainerConfig' Traceback (most recent call last): File "docker-compose", line 3, in File "compose/cli/main.py", line 81, in main File "compose/cli/main.py", line 203, in perform_command File "compose/metrics/decorator.py", line 18, in wrapper File "compose/cli/main.py", line 1186, in up File "compose/cli/main.py", line 1182, in up File "compose/project.py", line 702, in up File "compose/parallel.py", line 108, in parallel_execute File "compose/parallel.py", line 206, in producer File "compose/project.py", line 688, in do File "compose/service.py", line 581, in execute_convergence_plan File "compose/service.py", line 503, in _execute_convergence_recreate File "compose/parallel.py", line 108, in parallel_execute File "compose/parallel.py", line 206, in producer File "compose/service.py", line 496, in recreate File "compose/service.py", line 615, in recreate_container File "compose/service.py", line 334, in create_container File "compose/service.py", line 922, in _get_container_create_options File "compose/service.py", line 962, in _build_container_volume_options File "compose/service.py", line 1549, in merge_volume_bindings File "compose/service.py", line 1579, in get_container_data_volumes KeyError: 'ContainerConfig' --- .github/workflows/deploy_release.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy_release.yaml b/.github/workflows/deploy_release.yaml index 88ce210e..5b2097f2 100644 --- a/.github/workflows/deploy_release.yaml +++ b/.github/workflows/deploy_release.yaml @@ -7,7 +7,7 @@ on: jobs: ci: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 @@ -19,12 +19,12 @@ jobs: run: pdm install - name: Test with pytest run: | - docker-compose -f tests/docker-compose.yaml up -d + docker compose -f tests/docker-compose.yaml up -d sleep 20 pdm test - name: Test SSL connection with pytest run: | - enable_ssl=true docker-compose -f tests/docker-compose-ssl.yaml up -d + enable_ssl=true docker compose -f tests/docker-compose-ssl.yaml up -d sleep 20 pdm test-ssl