-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.mage.yml
98 lines (96 loc) · 4.22 KB
/
.mage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
magephp:
log_dir: ./.mage/logs
composer:
path: composer
exclude:
- ./.ddev
- ./.git
- ./.gitattributes
- ./.gitignore
- ./.github
- ./.mage
- ./.vscode
- ./.editorconfig
- ./.env.local
- ./.env.test
- ./.mage.yml
- ./.php_cs.cache
- ./.php_cs.dist
- ./assets
- ./build
- ./legacy_hook/tests
- ./node_modules
- ./tests
- ./auth.json
- ./phpunit.xml.dist
- ./package.json
- ./README.md
- ./webpack.config.js
environments:
master:
user: intercept.typo3.com
from: ./
host_path: /srv/vhosts/intercept.typo3.com/site/mage/
releases: 3
hosts:
- shared-small.typo3.com
pre-deploy:
- exec: { cmd: "echo \"APP_ENV=prod\" >> .env.local"}
- composer/install: { flags: "--no-dev --no-progress --optimize-autoloader --ansi"}
- exec: { cmd: "npm ci"}
- exec: { cmd: "npm run build"}
on-deploy:
- fs/link: { from: "../../../../shared/var/docs-build-information", to: "var/docs-build-information" }
- fs/link: { from: "../../../../shared/var/docs-build-information", to: "public/docs-build-information" }
- fs/link: { from: "../../../../shared/var/patches", to: "var/patches" }
- fs/link: { from: "../../../../shared/var/data.db", to: "var/data.db" }
- fs/link: { from: "../../../shared/.env.local", to: ".env.local" }
- fs/link: { from: "../../../../shared/var/git-core-pr", to: "var/git-core-pr" }
on-release:
post-release:
- exec: { cmd: "[ -d ../../../cachetool ] || mkdir -p ../../../cachetool"}
- exec: { cmd: "[ -f ../../../cachetool/cachetool.phar ] || curl -L -o ../../../cachetool/cachetool.phar https://gordalina.github.io/cachetool/downloads/cachetool.phar && chmod +x ../../../cachetool/cachetool.phar"}
- exec: { cmd: "php ../../../cachetool/cachetool.phar opcache:reset --fcgi=/var/run/intercept.typo3.com_fpm.sock --tmp-dir=/srv/vhosts/intercept.typo3.com/site/cachetool"}
- exec: { cmd: "rm -rf var/cache"}
- exec: { cmd: "php8.2 ./bin/console cache:warmup"}
- exec: { cmd: "php8.2 ./bin/console app:docs-redirect-deploy"}
post-deploy:
develop:
user: stage.intercept.typo3.com
from: ./
host_path: /srv/vhosts/stage.intercept.typo3.com/site/mage/
releases: 3
hosts:
- shared-small.typo3.com
pre-deploy:
- exec: { cmd: "echo \"APP_ENV=prod\" >> .env.local"}
- composer/install: { flags: "--no-dev --no-progress --optimize-autoloader --ansi"}
- exec: { cmd: "npm ci"}
- exec: { cmd: "npm run build"}
on-deploy:
- fs/link: { from: "../../../../shared/var/docs-build-information", to: "var/docs-build-information" }
- fs/link: { from: "../../../../shared/var/docs-build-information", to: "public/docs-build-information" }
- fs/link: { from: "../../../../shared/var/patches", to: "var/patches" }
- fs/link: { from: "../../../../shared/var/data.db", to: "var/data.db" }
- fs/link: { from: "../../../shared/.env.local", to: ".env.local" }
- fs/link: { from: "../../../../shared/var/git-core-pr", to: "var/git-core-pr" }
on-release:
post-release:
- exec: { cmd: "[ -d ../../../cachetool ] || mkdir -p ../../../cachetool"}
- exec: { cmd: "[ -f ../../../cachetool/cachetool.phar ] || curl -L -o ../../../cachetool/cachetool.phar https://gordalina.github.io/cachetool/downloads/cachetool.phar && chmod +x ../../../cachetool/cachetool.phar"}
- exec: { cmd: "php ../../../cachetool/cachetool.phar opcache:reset --fcgi=/var/run/stage.intercept.typo3.com_fpm.sock --tmp-dir=/srv/vhosts/stage.intercept.typo3.com/site/cachetool"}
- exec: { cmd: "rm -rf var/cache"}
- exec: { cmd: "php8.2 ./bin/console cache:warmup"}
post-deploy:
legacy_hook_master:
user: prod.docs.typo3.com
from: ./legacy_hook/
host_path: /srv/vhosts/prod.docs.typo3.com/site/Web/services/
hosts:
- prod.docs.typo3.com
pre-deploy:
- composer/install: { flags: "--working-dir=./legacy_hook --no-dev --no-progress --optimize-autoloader --ansi"}
on-deploy:
on-release:
post-release:
post-deploy: