Skip to content

Docker image for deployments using the php library "Deployer" from deployer.org.

Notifications You must be signed in to change notification settings

dhoffmann1979/php-deployer

 
 

Repository files navigation

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 dep

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
    - dep deploy production

About

Docker image for deployments using the php library "Deployer" from deployer.org.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 72.9%
  • Shell 27.1%