feat(workflows): Add Docker installation step
Some checks failed
Test! / test (push) Failing after 8s
Some checks failed
Test! / test (push) Failing after 8s
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.
This commit is contained in:
parent
7438e0f28b
commit
d4afc756c4
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue