Commit 0ffc7984 authored by Thomas Löffler's avatar Thomas Löffler

Changes deployment to new t3o server

parent a5a5be92
Pipeline #1112 passed with stages
in 3 minutes and 3 seconds
......@@ -51,7 +51,10 @@ layout:
before_script:
- apk add openssh-client bash --no-cache
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | ssh-add -
- echo "$SSH_PRIVATE_KEY_STAGE" | ssh-add -
- echo "$SSH_PRIVATE_KEY_PRODUCTION" | ssh-add -
- ssh-keyscan -p 22191 stage.typo3.org >> /root/.ssh/known_hosts
- ssh-keyscan -p 22193 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}
when: manual
......@@ -72,7 +75,7 @@ deploy-develop:
<<: *deploy_template
environment:
name: develop
url: https://vpro0100.proserver.punkt.de/
url: https://stage.typo3.org/
only:
- develop
......@@ -86,8 +89,8 @@ dump-assets:
expire_in: '3d'
script:
- apk add rsync --no-cache
- rsync -ah -e "ssh -p 22179" extensionsdev@extensions-dev.typo3.org:ci/shared/ ./assets/
- ssh -p22179 extensionsdev@extensions-dev.typo3.org "mysqldump -u${DEV_DATABASE_USER} -p${DEV_DATABASE_PASSWORD} -h127.0.0.1 extensionsdev | gzip -9 -c" > ./assets/db.sql.gz
- rsync -ah -e "ssh -p 22191" tthreeorgstage@stage.typo3.org:ci/shared/ ./assets/
- ssh -p22191 tthreeorgstage@stage.typo3.org "mysqldump -u${DEV_DATABASE_USER} -p${DEV_DATABASE_PASSWORD} -h127.0.0.1 tthreeorgstage | gzip -9 -c" > ./assets/db.sql.gz
dependencies:
when:
only:
......
......@@ -4,7 +4,6 @@ namespace Deployer;
require_once '/composer/vendor/deployer/deployer/recipe/common.php';
require_once '/composer/vendor/deployer/recipes/rsync.php';
require_once __DIR__ . '/typo3console.php';
$sharedDirectories = [
'html/fileadmin',
......@@ -53,7 +52,13 @@ set('rsync_src', '/src/');
set('keep_releases', 10);
serverList('/src/.gitlab-ci/deployer/servers.yml');
set('typo3:install:generatepackagestates:options', ["activate-default=1"]);
task('typo3', function () {
run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms database:updateschema');
run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms language:update');
run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms install:fixfolderstructure');
run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms cache:flush');
});
task('deploy', [
'deploy:prepare',
......@@ -64,9 +69,5 @@ task('deploy', [
'deploy:writable',
'deploy:symlink',
'cleanup',
'typo3:database:updateschema',
'typo3:language:update',
'typo3:install:generatepackagestates',
'typo3:install:fixfolderstructure',
'typo3:cache:flush'
'typo3'
]);
master:
host: vpro0100.proserver.punkt.de
port: 22
user: proserver
host: typo3.org
port: 22193
user: tthreeorg
forward_agent: true
deploy_path: /var/www/master
deploy_path: ~/ci
develop:
host: vpro0100.proserver.punkt.de
port: 22
user: proserver
host: stage.typo3.org
port: 22191
user: tthreeorgstage
forward_agent: true
deploy_path: /var/www/develop
deploy_path: ~/ci/
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