Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
77755df3
Commit
77755df3
authored
Jan 18, 2018
by
Thomas Löffler
Browse files
Add cachetool for deployment
* Uses deployer v5 * Uses cachetool recipe
parent
ea56f2dd
Pipeline
#3210
failed with stages
in 3 minutes and 10 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
77755df3
...
...
@@ -58,7 +58,7 @@ layout:
.deploy-template
:
&deploy_template
stage
:
deploy
image
:
name
:
"
torvitas/deployer:
4.0.0
-alpine"
name
:
"
torvitas/deployer:
5
-alpine"
entrypoint
:
[
"
"
]
before_script
:
-
mkdir -p /root/.ssh/
...
...
.gitlab-ci/deployer/deploy.php
View file @
77755df3
...
...
@@ -4,6 +4,7 @@ namespace Deployer;
require_once
'/composer/vendor/deployer/deployer/recipe/common.php'
;
require_once
'/composer/vendor/deployer/recipes/rsync.php'
;
require_once
'/composer/vendor/deployer/recipes/cachetool.php'
;
$sharedDirectories
=
[
'html/fileadmin'
,
...
...
@@ -50,12 +51,18 @@ set('rsync', [
]);
set
(
'rsync_src'
,
'./'
);
set
(
'keep_releases'
,
10
);
serverList
(
'./.gitlab-ci/deployer/servers.yml'
);
inventory
(
'./.gitlab-ci/deployer/servers.yml'
);
task
(
'typo3'
,
function
()
{
run
(
'cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms install:extensionsetupifpossible'
);
});
host
(
'production'
)
->
set
(
'cachetool'
,
'/var/run/php7-fpm-extensions.sock'
);
host
(
'stage'
)
->
set
(
'cachetool'
,
'/var/run/php7-fpm-extensionsstage.sock'
);
task
(
'opcache'
,
function
()
{
});
task
(
'deploy'
,
[
'deploy:prepare'
,
'deploy:release'
,
...
...
@@ -64,6 +71,7 @@ task('deploy', [
'deploy:shared'
,
'deploy:writable'
,
'deploy:symlink'
,
'cachetool:clear:opcache'
,
'cleanup'
,
'typo3'
]);
.gitlab-ci/deployer/servers.yml
View file @
77755df3
master
:
stage
:
production
host
:
extensions.typo3.org
port
:
22192
user
:
extensions
forward_agent
:
true
deploy_path
:
~/ci/
develop
:
stage
:
stage
host
:
extensions-stage.typo3.org
port
:
22191
user
:
extensionsstage
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment