Commit 19bf12de authored by Sascha Marcel Schmidt's avatar Sascha Marcel Schmidt

use deployer image as executor

parent 753706b9
......@@ -47,8 +47,9 @@ layout:
.deploy-template: &deploy_template
stage: deploy
image:
name: "torvitas/deployer:4.0.0-alpine"
before_script:
- apk add openssh-client bash --no-cache
- mkdir -p /root/.ssh/
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY_STAGE" | ssh-add -
......@@ -56,7 +57,7 @@ layout:
- ssh-keyscan -p 22191 extensions-stage.typo3.org >> /root/.ssh/known_hosts
- ssh-keyscan -p 22179 extensions.typo3.org >> /root/.ssh/known_hosts
script:
- VERSION=4.0.0-alpine ./.gitlab-ci/scripts/deployer.sh -f/src/.gitlab-ci/deployer/deploy.php deploy ${CI_BUILD_REF_NAME}
- dep -f./.gitlab-ci/deployer/deploy.php deploy ${CI_BUILD_REF_NAME}
dependencies:
- layout
except:
......
......@@ -48,9 +48,9 @@ set('rsync', [
'options' => ['delete'],
'timeout' => 300
]);
set('rsync_src', '/src/');
set('rsync_src', './');
set('keep_releases', 10);
serverList('/src/.gitlab-ci/deployer/servers.yml');
serverList('./.gitlab-ci/deployer/servers.yml');
task('typo3', function() {
run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms install:generatepackagestates 0 1');
......
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