-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
29 lines (22 loc) · 1.07 KB
/
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
steps:
- id: "Rodando docker-compose"
name: "gcr.io/$PROJECT_ID/docker-compose:1.24.0"
args: ["-f", "docker-compose.prod.yaml", "up", "-d"]
- id: "Rodando compose"
name: "gcr.io/cloud-builders/docker"
args: ["exec", "-t", "micro-videos-app", "composer", "install"]
- id: "Copiando .env"
name: "gcr.io/cloud-builders/docker"
args: ["exec", "-t", "micro-videos-app", "cp", ".env.example", ".env"]
- id: "Copiando .env.testing"
name: "gcr.io/cloud-builders/docker"
args: ["exec", "-t", "micro-videos-app", "cp", ".env.testing.example", ".env.testing"]
- id: "Rodando key generate"
name: "gcr.io/cloud-builders/docker"
args: ["exec", "-t", "micro-videos-app", "php", "/var/www/artisan", "key:generate"]
- id: "Rodando migrate"
name: "gcr.io/cloud-builders/docker"
args: ["exec", "-t", "micro-videos-app", "php", "/var/www/artisan", "migrate"]
- id: "Rodando phpunit"
name: "gcr.io/cloud-builders/docker"
args: ["exec", "-t", "micro-videos-app", "php", "/var/www/vendor/bin/phpunit", "-c", "/var/www/phpunit.xml"]