Sign inSign up

dwdraju/ssh-client-alpine

By dwdraju

Updated almost 6 years ago

SSH Client based on Alpine Linux Image for CI/CD

Image
0

10K+

dwdraju/ssh-client-alpine repository overview

SSH Client Based on Alpine Linux for CI/CD

Usage

On Gitlab CI

deploy-dev:
  stage: deploy
  image: dwdraju/ssh-client-alpine
  environment: Dev
  script: 
    - mkdir -p ~/.ssh
    - chmod 700 ~/.ssh
    - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
    - echo "$DEV_SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
    - chmod 600 ~/.ssh/id_rsa
    - ssh $DEV_SSH_HOST 'git --work-tree=/X/Y --git-dir=/X/Y/.git pull origin'
  only:
    - dev

Tag summary

Content type

Image

Digest

Size

3.9 MB

Last updated

about 8 years ago

docker pull dwdraju/ssh-client-alpine