Docker image for deployment with deployer
This image is mainly used for deployments with the PHP tool Deployer using Gitlab.
It includes php, rsync and ssh. The deployer script ist globally available with the command
The Gitlab documentation
explains how to use SSH keys using the Docker executor.
This image provides some shortcuts:
rsync are already installed. The ssh-agent is already running.
ssh-deactivate-key-checking provides a simple way to deactivate
StrictHostKeyChecking for SSH.
Example usage in
script: - "ssh-add <(echo \"$SSH_PRIVATE_KEY\")" - ssh-deactivate-key-checking - dep deploy production