forked from monicahq/monica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Envoy.blade.php
33 lines (27 loc) · 923 Bytes
/
Envoy.blade.php
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
@servers(['local' => 'localhost', 'web' => '{{ $site }}@deploy.{{ $region }}.frbit.com'])
@setup
$commit = exec('git log --pretty="%H" -n1 HEAD');
//$version = exec('php artisan monica:getversion');
$release = exec('git log --pretty="%h" -n1 HEAD');
@endsetup
@story('deploy')
sentry-set
git
sentry
@endstory
@task('git-config', ['on' => 'local'])
git remote add fortrabbit {{ $site }}@deploy.{{ $region }}.frbit.com:{{ $site }}.git
@endtask
@task('git', ['on' => 'local'])
git fetch origin
git checkout {{ $branch ?? 'master' }}
git pull
git push -u fortrabbit {{ $branch ?? 'master' }}
@endtask
@task('sentry-set', ['on' => 'web'])
echo {{ $release }} > .sentry-release
@endtask
@task('sentry', ['on' => 'web'])
php artisan sentry:release --force -vvv --release={{ $release }} --environment=production --commit={{ $commit }}
php artisan config:cache
@endtask