Sign inSign up

fabeat/rsync-deploy

By fabeat

•Updated about 9 years ago

Docker image for deployments using rsync and ssh.

Image
0

100K+

fabeat/rsync-deploy repository overview

⁠Docker image for Rsync deployment

This image is mainly used for deployments with Rsync from a docker container in Gitlab.

The Gitlab documentation⁠ explains how to use SSH keys using the Docker executor.

This image provides some shortcuts: bash, ssh and rsync are already installed. The ssh-agent is already running. The script ssh-deactivate-key-checking provides a simple way to deactivate StrictHostKeyChecking for SSH.

Example usage in .gitlab-ci.yml:

  script:
    - "ssh-add <(echo \"$SSH_PRIVATE_KEY\")"
    - ssh-deactivate-key-checking
    - rsync -av ./www/ user@server:/var/www/

Tag summary

Content type

Image

Digest

Size

4.1 MB

Last updated

about 9 years ago

docker pull fabeat/rsync-deploy