-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy.yaml
69 lines (65 loc) · 1.57 KB
/
deploy.yaml
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
import:
- recipe/laravel.php
- contrib/php-fpm.php
- deploy/tasks/npm.php
# - deploy/tasks/artisan.php
config:
application: 'Website Factory'
repository: '[email protected]:code4romania/website-factory-primarie.git'
php_fpm_version: '8.0'
remote_user: ubuntu
writable_use_sudo: true
hosts:
sinaia:
hostname: 'website-factory.code4.ro'
deploy_path: '/var/www/website-factory/sinaia'
labels:
stage: staging
brasov:
hostname: 'website-factory.code4.ro'
deploy_path: '/var/www/website-factory/brasov'
labels:
stage: staging
demo:
hostname: 'website-factory.code4.ro'
deploy_path: '/var/www/website-factory/demo'
labels:
stage: staging
cds:
hostname: 'website-factory.code4.ro'
deploy_path: '/var/www/website-factory/cds'
labels:
stage: staging
cris:
hostname: 'website-factory.code4.ro'
deploy_path: '/var/www/website-factory/cris'
labels:
stage: staging
code4:
hostname: 'website-factory.code4.ro'
deploy_path: '/var/www/website-factory/code4'
labels:
stage: staging
career-center:
hostname: 'website-factory.code4.ro'
deploy_path: '/var/www/website-factory/career-center'
labels:
stage: staging
tasks:
deploy:
- deploy:prepare
- deploy:vendors
- artisan:storage:link
- artisan:view:cache
- artisan:config:cache
- artisan:route:cache
- artisan:migrate
- assets:build
- deploy:publish
- php-fpm:reload
assets:build:
- npm:install
- npm:build
- npm:upload
after:
deploy:failed: deploy:unlock