diff --git a/.github/workflows/update_selfhost.yml b/.github/workflows/update_selfhost.yml index 9f64f85c..3261ef21 100644 --- a/.github/workflows/update_selfhost.yml +++ b/.github/workflows/update_selfhost.yml @@ -26,10 +26,35 @@ jobs: permissions: {} steps: + # https://docs.docker.com/engine/install/ubuntu/ + - name: upgrade docker + run: | + set +e + for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do apt-get remove $pkg; done + apt autoremove + + set -e + # Add Docker's official GPG key: + apt-get update + apt-get install ca-certificates curl + install -m 0755 -d /etc/apt/keyrings + curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc + chmod a+r /etc/apt/keyrings/docker.asc + + # Add the repository to Apt sources: + echo \ + "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ + $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ + tee /etc/apt/sources.list.d/docker.list > /dev/null + apt-get update + + apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin + - name: Cleanup Docker run: | docker system prune -a -f docker volume prune -f + - uses: actions/checkout@v4 - name: Install the toolchain run: |