forked from deployphp/deployer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
62 lines (52 loc) · 1.07 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
import:
- src/Support/Config/version.php
- src/Support/Config/verification.php
config:
depl: ~/dev/deployer
site: ~/deployer.org
dist: ~/dev/dist
hosts:
deployer.org: ~
tasks:
check_master:
local: true
script:
- "[[ $(git branch --show-current) == 'master' ]] || { echo 'Checkout master branch to release Deployer.'; exit 1; }"
pull:
script:
- cd {{depl}}
- git pull --rebase
- git status
test:
script:
- cd {{depl}}
- composer install
- composer test
- bin/build
- php deployer.phar --version
release:composer:
script:
- cd {{depl}}
- bin/release {{version}}
- git push
- git push --tags
release:phar:
script:
- cd {{site}}
- php scripts/sync-artifacts.php
- git add artifacts
- git commit -m "Release {{version}}"
release:dist:
script:
- cd {{dist}}
- php update
release:
- release:composer
- release:phar
- release:dist
before:
release:
- check_master
- pull
- test
- verification