-
Notifications
You must be signed in to change notification settings - Fork 1
/
apicra.yaml
100 lines (85 loc) · 1.59 KB
/
apicra.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
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
99
100
schema: apicra/application
version: 1.0.0
description: All objects which are using in development processes, all systems
gitlab:
url:
ticket:
- create
- done
local:
db:
- update
- remove
test:
production:
update:
- ls
- composer
workspace:
install:
- unitapi.workplace.software
keepass:
file:
environment:
local:
ssh:
type: 'docker_name'
credentials:
db:
type: 'mysql'
credentials: "keepass.file"
test:
ssh: 'ssh credentials'
live:
ssh: 'ssh credentials'
connection:
db:
local: 'docker_name'
test: 'ssh credentials'
live: 'ssh credentials'
ssh:
local: 'docker_name'
test: 'ssh credentials'
live: 'ssh credentials'
os:
separator:
win: '\'
unix: '/'
extension:
bash:
win: 'bat'
unix: 'sh'
project-config:
local:
path: ''
live:
path: ''
test:
path: ''
cmd:
artisan:
type: "git-clone-http"
url: "url to standard command, github repository"
filter: "*.sh"
docker:
path: "test"
filter: "*.sh"
migration:
path: "upgrade/*.{os.bash.default.extension}"
mysql:
cmd:
backup: {connection} {project.path} {cmd.mysql.backup}
test:
path: "test"
www:
path: "test"
default:
cmd:
restore_from_test: "dd"
synchronisation:
from_live_db_to_local:
cmd:
- {connection.live} {project.path} backup.sh
- {connection.local} {project.path} {cmd.mysql.restore_from_test}
- {connection.test} {project.path} {cmd.mysql.backup}
- {connection.live} {project.path} {cmd.mysql.backup}