require 'recipe/symfony.php';
server('prod', 'host', 22)
->user('name')
->forwardAgent()
->stage('production')
->env('deploy_path', '/your/project/path');
set('repository', 'git@github.com:org/app.git');
task('reload:php-fpm', function () {
run('sudo /usr/sbin/service php5-fpm reload');
});
after('deploy', 'reload:php-fpm');
https://about.gitlab.com/images/ci/arch-1.jpg
image: sideci/ubuntu14.04-php-composer
before_script:
- eval $(ssh-agent -s)
- ssh-add <(echo "$CI_SSH_PRIVATE_KEY")
deployment:
stage: deploy
script:
- scripts to run
only:
- develop