Commit cc3affb7 authored by Thomas Löffler's avatar Thomas Löffler

Switch back to deployer v4

parent 7ce43ba7
Pipeline #3217 failed with stages
in 2 minutes and 58 seconds
...@@ -58,7 +58,7 @@ layout: ...@@ -58,7 +58,7 @@ layout:
.deploy-template: &deploy_template .deploy-template: &deploy_template
stage: deploy stage: deploy
image: image:
name: "torvitas/deployer:5-alpine" name: "torvitas/deployer:4.0.0-alpine"
entrypoint: [""] entrypoint: [""]
before_script: before_script:
- mkdir -p /root/.ssh/ - mkdir -p /root/.ssh/
......
...@@ -6,8 +6,6 @@ require_once '/composer/vendor/deployer/deployer/recipe/common.php'; ...@@ -6,8 +6,6 @@ require_once '/composer/vendor/deployer/deployer/recipe/common.php';
require_once '/composer/vendor/deployer/recipes/rsync.php'; require_once '/composer/vendor/deployer/recipes/rsync.php';
require_once '/composer/vendor/deployer/recipes/cachetool.php'; require_once '/composer/vendor/deployer/recipes/cachetool.php';
set('ssh_multiplexing', true);
$sharedDirectories = [ $sharedDirectories = [
'html/fileadmin', 'html/fileadmin',
'html/uploads', 'html/uploads',
...@@ -53,17 +51,14 @@ set('rsync', [ ...@@ -53,17 +51,14 @@ set('rsync', [
]); ]);
set('rsync_src', './'); set('rsync_src', './');
set('keep_releases', 10); set('keep_releases', 10);
inventory('./.gitlab-ci/deployer/servers.yml'); serverList('./.gitlab-ci/deployer/servers.yml');
task('typo3', function() { task('typo3', function() {
run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms install:extensionsetupifpossible'); run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms install:extensionsetupifpossible');
}); });
host('production')->set('cachetool', '/var/run/php7-fpm-extensions.sock'); server('production')->set('cachetool', '/var/run/php7-fpm-extensions.sock');
host('stage')->set('cachetool', '/var/run/php7-fpm-extensionsstage.sock'); server('stage')->set('cachetool', '/var/run/php7-fpm-extensionsstage.sock');
task('opcache', function() {
});
task('deploy', [ task('deploy', [
'deploy:prepare', 'deploy:prepare',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment