Upgrade deployer

This commit is contained in:
Björn Fromme
2022-10-04 17:16:36 +02:00
parent 2343dc2f01
commit 62e8199c48
3 changed files with 24 additions and 223 deletions
+1 -2
View File
@@ -77,8 +77,7 @@
} }
}, },
"require-dev": { "require-dev": {
"deployer/deployer": "^6.8", "deployer/deployer": "^7",
"deployer/recipes": "^6.2",
"ichhabrecht/filefill": "^3.3", "ichhabrecht/filefill": "^3.3",
"typo3/testing-framework": "^6.16" "typo3/testing-framework": "^6.16"
}, },
Generated
+8 -201
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "710142baed2d9361b6cb21b4424da20b", "content-hash": "2ef2df59ab7af408bda8770f685e1b8b",
"packages": [ "packages": [
{ {
"name": "b13/container", "name": "b13/container",
@@ -8323,42 +8323,22 @@
"packages-dev": [ "packages-dev": [
{ {
"name": "deployer/deployer", "name": "deployer/deployer",
"version": "v6.9.0", "version": "v7.0.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/deployphp/deployer.git", "url": "https://github.com/deployphp/deployer.git",
"reference": "c4380effdc9f6d9c6ae549bb76f0a22bcb1d31d2" "reference": "99a57a9035cfe0eeae5dba5befe5411ac0f3ac72"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/deployphp/deployer/zipball/c4380effdc9f6d9c6ae549bb76f0a22bcb1d31d2", "url": "https://api.github.com/repos/deployphp/deployer/zipball/99a57a9035cfe0eeae5dba5befe5411ac0f3ac72",
"reference": "c4380effdc9f6d9c6ae549bb76f0a22bcb1d31d2", "reference": "99a57a9035cfe0eeae5dba5befe5411ac0f3ac72",
"shasum": "" "shasum": ""
}, },
"require": {
"deployer/phar-update": "~2.2",
"php": "^7.2 || ^8.0",
"pimple/pimple": "~3.0",
"symfony/console": "~2.7|~3.0|~4.0|~5.0",
"symfony/process": "~2.7|~3.0|~4.0|~5.0",
"symfony/yaml": "~2.7|~3.0|~4.0|~5.0"
},
"require-dev": {
"phpunit/phpunit": "^8"
},
"bin": [ "bin": [
"bin/dep" "dep"
], ],
"type": "library", "type": "library",
"autoload": {
"files": [
"src/Support/helpers.php",
"src/functions.php"
],
"psr-4": {
"Deployer\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
"license": [ "license": [
"MIT" "MIT"
@@ -8378,131 +8358,11 @@
}, },
"funding": [ "funding": [
{ {
"url": "https://github.com/antonmedv", "url": "https://github.com/sponsors/antonmedv",
"type": "github" "type": "github"
} }
], ],
"time": "2022-08-03T18:09:01+00:00" "time": "2022-09-10T07:44:30+00:00"
},
{
"name": "deployer/phar-update",
"version": "v2.2.0",
"source": {
"type": "git",
"url": "https://github.com/deployphp/phar-update.git",
"reference": "9ad07422f2cd43a1382ee8e134bdcd3a374848e3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/deployphp/phar-update/zipball/9ad07422f2cd43a1382ee8e134bdcd3a374848e3",
"reference": "9ad07422f2cd43a1382ee8e134bdcd3a374848e3",
"shasum": ""
},
"require": {
"php": ">=5.3.3",
"symfony/console": "~2.7|~3.0|~4.0|~5.0"
},
"require-dev": {
"mikey179/vfsstream": "1.1.0",
"phpunit/phpunit": "3.7.*",
"symfony/process": "~2.7|~3.0|~4.0|~5.0"
},
"type": "library",
"autoload": {
"psr-4": {
"Deployer\\Component\\PharUpdate\\": "src/",
"Deployer\\Component\\PHPUnit\\": "src/PHPUnit/",
"Deployer\\Component\\Version\\": "src/Version/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Kevin Herrera",
"email": "[email protected]",
"homepage": "http://kevin.herrera.io"
},
{
"name": "Anton Medvedev",
"email": "[email protected]",
"homepage": "https://medv.io"
}
],
"description": "Integrates Phar Update to Symfony Console.",
"homepage": "https://github.com/deployphp/phar-update",
"keywords": [
"console",
"phar",
"update"
],
"support": {
"issues": "https://github.com/deployphp/phar-update/issues",
"source": "https://github.com/deployphp/phar-update/tree/v2.2.0"
},
"abandoned": true,
"time": "2019-12-12T13:45:57+00:00"
},
{
"name": "deployer/recipes",
"version": "6.2.2",
"source": {
"type": "git",
"url": "https://github.com/deployphp/recipes.git",
"reference": "84b3229c518c094a950e1fe785b7b8f9598770fe"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/deployphp/recipes/zipball/84b3229c518c094a950e1fe785b7b8f9598770fe",
"reference": "84b3229c518c094a950e1fe785b7b8f9598770fe",
"shasum": ""
},
"require": {
"php": "~7.0"
},
"require-dev": {
"deployer/deployer": "^6.3"
},
"type": "library",
"autoload": {
"files": [
"autoload.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Anton Medvedev",
"email": "[email protected]"
}
],
"description": "3rd party deployer recipes",
"homepage": "https://github.com/deployphp/recipes",
"keywords": [
"cachetool",
"cloudflare",
"deploy",
"deployer",
"deployment",
"hipchat",
"newrelic",
"rabbit",
"recipes",
"sentry",
"slack",
"yarn"
],
"support": {
"issues": "https://github.com/deployphp/recipes/issues",
"source": "https://github.com/deployphp/recipes"
},
"abandoned": true,
"time": "2019-06-27T06:47:18+00:00"
}, },
{ {
"name": "ichhabrecht/filefill", "name": "ichhabrecht/filefill",
@@ -9212,59 +9072,6 @@
], ],
"time": "2022-09-25T03:44:45+00:00" "time": "2022-09-25T03:44:45+00:00"
}, },
{
"name": "pimple/pimple",
"version": "v3.5.0",
"source": {
"type": "git",
"url": "https://github.com/silexphp/Pimple.git",
"reference": "a94b3a4db7fb774b3d78dad2315ddc07629e1bed"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/silexphp/Pimple/zipball/a94b3a4db7fb774b3d78dad2315ddc07629e1bed",
"reference": "a94b3a4db7fb774b3d78dad2315ddc07629e1bed",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
"psr/container": "^1.1 || ^2.0"
},
"require-dev": {
"symfony/phpunit-bridge": "^5.4@dev"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.4.x-dev"
}
},
"autoload": {
"psr-0": {
"Pimple": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "[email protected]"
}
],
"description": "Pimple, a simple Dependency Injection Container",
"homepage": "https://pimple.symfony.com",
"keywords": [
"container",
"dependency injection"
],
"support": {
"source": "https://github.com/silexphp/Pimple/tree/v3.5.0"
},
"time": "2021-10-28T11:13:42+00:00"
},
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",
"version": "1.0.1", "version": "1.0.1",
+15 -20
View File
@@ -1,9 +1,9 @@
<?php <?php
namespace Deployer; namespace Deployer;
require 'vendor/deployer/deployer/recipe/typo3.php'; require 'recipe/typo3.php';
require 'vendor/deployer/recipes/recipe/rsync.php'; require 'contrib/rsync.php';
require 'vendor/deployer/recipes/recipe/cachetool.php'; require 'contrib/cachetool.php';
set('typo3_webroot', 'public'); set('typo3_webroot', 'public');
set('application', 'ep-reisen-typo3'); set('application', 'ep-reisen-typo3');
@@ -12,8 +12,6 @@ set('repository', '[email protected]:dreipunktnull/ep-reisen');
set('git_tty', false); set('git_tty', false);
set('ssh_type', 'native'); set('ssh_type', 'native');
set('allow_anonymous_stats', false);
add('shared_files', [ add('shared_files', [
'{{typo3_webroot}}/typo3conf/LocalConfiguration.php', '{{typo3_webroot}}/typo3conf/LocalConfiguration.php',
'{{typo3_webroot}}/sinkhole.html', '{{typo3_webroot}}/sinkhole.html',
@@ -58,19 +56,18 @@ $rsyncOptions = [
]; ];
host('production') host('production')
->hostname('185.237.67.190') ->setHostname('185.237.67.190')
->stage('production') ->setRemoteUser('p546128')
->user('p546128') ->setForwardAgent(true)
->forwardAgent() ->setSshMultiplexing(true)
->multiplexing() ->setDeployPath('/home/www/p546128/html/{{application}}')
->set('deploy_path', '/home/www/p546128/html/{{application}}')
->set('buspronet_path', '/home/www/p546128/html/kuschick/buspronet/buspronet') ->set('buspronet_path', '/home/www/p546128/html/kuschick/buspronet/buspronet')
->set('bin/php', '/usr/local/bin/php') ->set('bin/php', '/usr/local/bin/php')
->set('http_user', 'p546128') ->set('http_user', 'p546128')
->set('bin/composer', '/usr/local/bin/composer') ->set('bin/composer', '/usr/local/bin/composer')
->set('composer_options', '--prefer-dist --no-progress --no-interaction --optimize-autoloader')
->set('rsync_src', __DIR__) ->set('rsync_src', __DIR__)
->set('rsync', $rsyncOptions) ->set('rsync', $rsyncOptions)
->set('bin/cachetool', 'cachetool-7.0.0.phar')
->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{release_path}}/public/ --web-url=https://www.ep-reisen.de') ->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{release_path}}/public/ --web-url=https://www.ep-reisen.de')
; ;
@@ -78,19 +75,18 @@ $sharedFilesStaging = get('shared_files');
$sharedFilesStaging[] = '{{typo3_webroot}}/.htpasswd'; $sharedFilesStaging[] = '{{typo3_webroot}}/.htpasswd';
host('staging') host('staging')
->hostname('185.237.67.190') ->setHostname('185.237.67.190')
->stage('staging') ->setRemoteUser('p546128')
->user('p546128') ->setForwardAgent(true)
->forwardAgent() ->setSshMultiplexing(true)
->multiplexing() ->setDeployPath('/home/www/p546128/html/{{application}}-staging')
->set('deploy_path', '/home/www/p546128/html/{{application}}-staging')
->set('buspronet_path', '/home/www/p546128/html/kuschick/buspronet/buspronet') ->set('buspronet_path', '/home/www/p546128/html/kuschick/buspronet/buspronet')
->set('bin/php', '/usr/local/bin/php') ->set('bin/php', '/usr/local/bin/php')
->set('http_user', 'p546128') ->set('http_user', 'p546128')
->set('bin/composer', '/usr/local/bin/composer') ->set('bin/composer', '/usr/local/bin/composer')
->set('composer_options', '--prefer-dist --no-progress --no-interaction --optimize-autoloader')
->set('rsync_src', __DIR__) ->set('rsync_src', __DIR__)
->set('rsync', $rsyncOptions) ->set('rsync', $rsyncOptions)
->set('bin/cachetool', 'cachetool-7.0.0.phar')
->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{release_path}}/public/ --web-url=https://staging.ep-reisen.de --web-basic-auth=ep:reisen') ->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{release_path}}/public/ --web-url=https://staging.ep-reisen.de --web-basic-auth=ep:reisen')
->set('shared_files', $sharedFilesStaging) ->set('shared_files', $sharedFilesStaging)
; ;
@@ -110,7 +106,6 @@ task('deploy', [
'deploy:buspronet:symlink', 'deploy:buspronet:symlink',
'deploy:unlock', 'deploy:unlock',
'cachetool:clear:opcache', 'cachetool:clear:opcache',
'cleanup',
]); ]);
task('deploy:buspronet:symlink', function () { task('deploy:buspronet:symlink', function () {