Skip to content

Commit 84c494b

Browse files
github/workflows: always use latest stable docker compose release
docker compose v2.36.2 introduced a regression [1] making labgrid's docker image generation fail: Container staging-dut-1 Creating Container staging-coordinator-1 Creating Container staging-dut-1 Error response from daemon: No such image: staging-dut:latest Error response from daemon: No such image: staging-dut:latest Error: Process completed with exit code 1. The issue has been resolved for nearly a month, but there is still no GitHub runner image [2] that includes it. It is recommended [3] to use docker's official setup-compose-action to benefit from stable releases as early as possible [4]: If Docker Compose is already installed on the runner, the action will skip download. Otherwise, it will download and install the latest stable version available on GitHub. [1] docker/compose#12896 [2] https://github.com/actions/runner-images/releases [3] docker/compose#12892 (comment) [4] https://github.com/docker/setup-compose-action Signed-off-by: Bastian Krause <[email protected]>
1 parent 2db6694 commit 84c494b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/docker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
runs-on: ubuntu-24.04
2020
steps:
2121
- uses: actions/checkout@v4
22+
- uses: docker/setup-compose-action@v1
23+
with:
24+
version: latest
2225
- name: Install system dependencies
2326
run: |
2427
sudo apt install -yq python3-pip python3-setuptools-scm

.github/workflows/reusable-unit-tests-docker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
- uses: actions/checkout@v4
1515
with:
1616
ref: ${{ inputs.branch }}
17+
- uses: docker/setup-compose-action@v1
18+
with:
19+
version: latest
1720
- name: Install system dependencies
1821
run: |
1922
sudo apt install -yq python3-pip python3-setuptools-scm

0 commit comments

Comments
 (0)