Sign inSign up

pgeof/ssh-deploy

By pgeof

Updated over 2 years ago

Deploy files on a remote server within your CI/CD process.

Image
0

3.1K

pgeof/ssh-deploy repository overview

ssh-deploy

Docker image based on alpine image with ssh client, rsync and lftp tools. Use this image in your CI/CD process to deploy files on a remote server.

Supported tags

  • latest

Configuration

Use environment variables to set the SSH private key and the address of the remote host.

  • SSH_PRIVATE_KEY : SSH private key
  • SSH_HOST : address of the remote host

Usages

Copy folder through rsync+ssh

    docker run -e SSH_PRIVATE_KEY="$(cat ~/.ssh/id_rsa)" -e SSH_HOST="remotehost.com" pgeof/ssh-deploy rsync -e ssh -a --delete dist/ [email protected]:./dist/

Execute a command on the remote host

    docker run -e SSH_PRIVATE_KEY="$(cat ~/.ssh/id_rsa)" -e SSH_HOST="remotehost.com" pgeof/ssh-deploy ssh [email protected] ./deploy

Tag summary

Content type

Image

Digest

sha256:e20da2282

Size

7.4 MB

Last updated

over 2 years ago

docker pull pgeof/ssh-deploy