-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
39 lines (35 loc) · 926 Bytes
/
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
import:
- recipe/laravel.php
- contrib/npm.php
config:
application: 'blade-icons-packages.codeat3.co'
repository: 'git@github.com:codeat3/blade-icons-packages.git'
php_fpm_version: '8.2'
remote_user: forge
base_deploy_path: '/home/forge'
hosts:
'production':
branch: 'main'
hostname: '5.161.93.164'
identity_file: ~/.ssh/id_forge
deploy_path: '{{base_deploy_path}}/blade-icons-packages.codeat3.co'
'staging':
branch: 'staging'
hostname: '5.161.93.164'
identity_file: ~/.ssh/id_forge
deploy_path: '{{base_deploy_path}}/staging.blade-icons-packages.codeat3.co'
tasks:
deploy:
- deploy:prepare
- deploy:vendors
- artisan:storage:link
- artisan:optimize
- artisan:down
- npm:install
- npm:run:prod
- artisan:up
- deploy:publish
npm:run:prod:
- run: 'cd {{release_path}} && npm run build'
after:
deploy:failed: deploy:unlock