Skip to content

Commit 93b8eca

Browse files
committed
ci: docker-ce packages are now installed on GitHub Runners
Signed-off-by: CrazyMax <[email protected]>
1 parent 7703e82 commit 93b8eca

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
-
6161
name: Stop docker
6262
run: |
63-
sudo systemctl stop docker
63+
sudo systemctl stop docker docker.socket
6464
-
6565
name: Set up Docker Buildx
6666
id: buildx
@@ -349,7 +349,11 @@ jobs:
349349
-
350350
name: Uninstall docker cli
351351
run: |
352-
sudo apt-get purge -y moby-cli moby-buildx
352+
if dpkg -s "docker-ce" >/dev/null 2>&1; then
353+
sudo dpkg -r --force-depends docker-ce-cli docker-buildx-plugin
354+
else
355+
sudo apt-get purge -y moby-cli moby-buildx
356+
fi
353357
-
354358
name: Set up Docker Buildx
355359
uses: ./
@@ -373,7 +377,11 @@ jobs:
373377
-
374378
name: Uninstall docker cli
375379
run: |
376-
sudo apt-get purge -y moby-cli moby-buildx
380+
if dpkg -s "docker-ce" >/dev/null 2>&1; then
381+
sudo dpkg -r --force-depends docker-ce-cli docker-buildx-plugin
382+
else
383+
sudo apt-get purge -y moby-cli moby-buildx
384+
fi
377385
-
378386
name: Set up Docker Buildx
379387
uses: ./
@@ -400,7 +408,11 @@ jobs:
400408
-
401409
name: Uninstall docker cli
402410
run: |
403-
sudo apt-get purge -y moby-cli moby-buildx
411+
if dpkg -s "docker-ce" >/dev/null 2>&1; then
412+
sudo dpkg -r --force-depends docker-ce-cli docker-buildx-plugin
413+
else
414+
sudo apt-get purge -y moby-cli moby-buildx
415+
fi
404416
-
405417
name: Set up Docker Buildx
406418
id: buildx

0 commit comments

Comments
 (0)