A super lightweight Docker SSH client image
Go to file
2021-04-09 13:03:58 +00:00
.gitlab-ci.yml init 2021-04-09 14:21:41 +02:00
Dockerfile init 2021-04-09 14:21:41 +02:00
README.md Update README.md 2021-04-09 13:03:58 +00:00

Docker SSH-Client image

Updated on a weekly basis.

Source repo:

https://gitlab.heili.eu/lukas/ssh-docker

Example Gitlab job:

Test_Deploy:
  stage: deploy
  image: luki42/ssh:latest
  needs:
    - Frontend_Tests
    - Backend_Tests
    - Debian_Server
  only:
    - master
  script:
    - eval $(ssh-agent -s)
    - echo "$SSH_PRIVATE_KEY" | ssh-add -
    - mkdir -p ~/.ssh
    - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
    - scp deb/Testpackage.deb root@192.168.0.42:/tmp/
    - ssh root@192.168.0.42 "DEBIAN_FRONTEND=noninteractive apt-get --reinstall  -y -qq install /tmp/Testpackage.deb && rm /tmp/Testpackage.deb"