From d4afc756c4ed6ee7353109414dbbea5fefc3f3fe Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 22 Apr 2024 16:58:23 +0200 Subject: [PATCH] feat(workflows): Add Docker installation step To facilitate the execution of tests within a controlled environment, Docker is now installed as part of the CI testing workflow. This addition ensures that any Docker-dependent steps, specifically the building and running of an SSH Server Docker container, execute seamlessly. Previously, the assumption was that Docker would be pre-installed on the runner, which could lead to inconsistencies or failures in environments where this was not the case. By explicitly including the Docker installation step, the workflow becomes more portable and resilient across different CI execution environments. --- .forgejo/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index c7a8800..4216885 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -18,6 +18,11 @@ jobs: run: | ssh-keygen -t rsa -b 4096 -f my_ssh_key -N "" + - name: Install Docker + run: | + sudo apt-get update + sudo apt-get install -y docker.io + - name: Build and run SSH Server Docker Container run: | docker build -t my-ssh-server ./ci-tests/Dockerfile