Deploy files on a remote server within your CI/CD process.
3.1K
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.
Use environment variables to set the SSH private key and the address of the remote host.
SSH_PRIVATE_KEY : SSH private keySSH_HOST : address of the remote hostCopy 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
Content type
Image
Digest
sha256:e20da2282…
Size
7.4 MB
Last updated
over 2 years ago
docker pull pgeof/ssh-deploy