From c5ae1eef67402ece6c8e4d9c60e5ae4647cc0ed4 Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 22 Apr 2024 16:59:14 +0200 Subject: [PATCH] refactor(test.yml): use apt-get without sudo in CI Optimized the Docker installation commands in the CI workflow by removing `sudo` when calling `apt-get`. This adjustment caters to environments where the CI runner executes as root or has adequate permissions, streamlining command execution and avoiding potential issues related to `sudo` availability or configuration. This change harmonizes with CI practices that favor minimalist, permission-aware setups. --- .forgejo/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 4216885..0d0c0b9 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -20,8 +20,8 @@ jobs: - name: Install Docker run: | - sudo apt-get update - sudo apt-get install -y docker.io + apt-get update + apt-get install -y docker.io - name: Build and run SSH Server Docker Container run: |