-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
25 lines (19 loc) · 935 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
steps:
- id: "Executar o docker-compose"
name: "gcr.io/$PROJECT_ID/docker-compose:1.24.0"
args: ["-f", "docker-compose.cloudbuild.yml", "up", "-d"]
- id: "Executar o composer"
name: "gcr.io/cloud-builders/docker"
args: ["exec", "-t", "app", "composer", "install"]
- id: "Copiar o arquivo .env.example para .env"
name: "gcr.io/cloud-builders/docker"
args: ["exec", "-t", "app", "cp", ".env.example", ".env"]
- id: "Rodar um artisan key:generate"
name: "gcr.io/cloud-builders/docker"
args: ["exec", "-t", "app", "php", "/var/www/artisan", "key:generate"]
- id: "Executar as migrações"
name: "gcr.io/cloud-builders/docker"
args: ["exec", "-t", "app", "php", "/var/www/artisan", "migrate"]
- id: "Executar os testes utilizando o PHPUnit"
name: "gcr.io/cloud-builders/docker"
args: ["exec", "-t", "app", "php", "/var/www/vendor/bin/phpunit", "-c", "/var/www/phpunit.xml"]