-
Notifications
You must be signed in to change notification settings - Fork 11
/
cloudbuild.yaml
51 lines (45 loc) · 909 Bytes
/
cloudbuild.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
steps:
- id: "Installing docker-compose"
name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '-t'
- 'gcr.io/$PROJECT_ID/docker-compose:latest'
- '.'
- id: "Running docker-compose"
name: 'gcr.io/$PROJECT_ID/docker-compose'
args: ['-f','docker-compose.yaml','up','-d','--build']
- id: "Running ps"
name: 'gcr.io/cloud-builders/docker'
args:
- 'ps'
- id: "Running migrations"
name: 'gcr.io/cloud-builders/docker'
args:
- 'exec'
- '-t'
- 'app'
- 'php'
- '/var/www/artisan'
- 'migrate'
- id: "Running db seeds"
name: 'gcr.io/cloud-builders/docker'
args:
- 'exec'
- '-t'
- 'app'
- 'php'
- '/var/www/artisan'
- 'db:seed'
- id: "Running tests"
name: 'gcr.io/cloud-builders/docker'
args:
- 'exec'
- '-t'
- 'app'
- 'php'
- '/var/www/vendor/bin/phpunit'
- '-c'
- '/var/www/phpunit.xml'
images:
- 'gcr.io/$PROJECT_ID/docker-compose:latest'