From 93b8ecaa2c1900a3605b90629b56d2208bf1d41f Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sat, 26 Aug 2023 13:42:53 +0200 Subject: [PATCH] ci: docker-ce packages are now installed on GitHub Runners Signed-off-by: CrazyMax --- .github/workflows/ci.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15b42e48..59c34c11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,7 @@ jobs: - name: Stop docker run: | - sudo systemctl stop docker + sudo systemctl stop docker docker.socket - name: Set up Docker Buildx id: buildx @@ -349,7 +349,11 @@ jobs: - name: Uninstall docker cli run: | - sudo apt-get purge -y moby-cli moby-buildx + if dpkg -s "docker-ce" >/dev/null 2>&1; then + sudo dpkg -r --force-depends docker-ce-cli docker-buildx-plugin + else + sudo apt-get purge -y moby-cli moby-buildx + fi - name: Set up Docker Buildx uses: ./ @@ -373,7 +377,11 @@ jobs: - name: Uninstall docker cli run: | - sudo apt-get purge -y moby-cli moby-buildx + if dpkg -s "docker-ce" >/dev/null 2>&1; then + sudo dpkg -r --force-depends docker-ce-cli docker-buildx-plugin + else + sudo apt-get purge -y moby-cli moby-buildx + fi - name: Set up Docker Buildx uses: ./ @@ -400,7 +408,11 @@ jobs: - name: Uninstall docker cli run: | - sudo apt-get purge -y moby-cli moby-buildx + if dpkg -s "docker-ce" >/dev/null 2>&1; then + sudo dpkg -r --force-depends docker-ce-cli docker-buildx-plugin + else + sudo apt-get purge -y moby-cli moby-buildx + fi - name: Set up Docker Buildx id: buildx