cloudbuild.gke-per-test.yaml [29:63]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- id: 'compile web app'
  name: 'gcr.io/cloud-builders/npm'
  dir: 'web'
  args: ['install']
  waitFor: ['-']

- id: 'web app unit tests'
  name: 'gcr.io/cloud-builders/npm'
  dir: 'web'
  args: ['test']
  waitFor: ['compile web app']

- id: 'build web'
  name: 'gcr.io/cloud-builders/docker'
  args: [
    'build',
    '--tag=web', 
    '--tag=gcr.io/$PROJECT_ID/web',
    '--cache-from', 'gcr.io/$PROJECT_ID/web:latest',
    'web/.',
  ]
  waitFor: ['web app unit tests'] # start immediately

- id: 'build db'
  name: 'gcr.io/cloud-builders/docker'
  args: [
    'build',
    '--tag=mysql',
    '--tag=gcr.io/$PROJECT_ID/mysql',
    '--cache-from', 'gcr.io/$PROJECT_ID/mysql:latest',
    'mysql/.',
  ]
  env:
  - "MYSQL_ROOT_PASSWORD=password"
  waitFor: ['-'] # start immediately
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cloudbuild.gke.yaml [16:50]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- id: 'compile web app'
  name: 'gcr.io/cloud-builders/npm'
  dir: 'web'
  args: ['install']
  waitFor: ['-']

- id: 'web app unit tests'
  name: 'gcr.io/cloud-builders/npm'
  dir: 'web'
  args: ['test']
  waitFor: ['compile web app']

- id: 'build web'
  name: 'gcr.io/cloud-builders/docker'
  args: [
    'build',
    '--tag=web', 
    '--tag=gcr.io/$PROJECT_ID/web',
    '--cache-from', 'gcr.io/$PROJECT_ID/web:latest',
    'web/.',
  ]
  waitFor: ['web app unit tests'] # start immediately

- id: 'build db'
  name: 'gcr.io/cloud-builders/docker'
  args: [
    'build',
    '--tag=mysql',
    '--tag=gcr.io/$PROJECT_ID/mysql',
    '--cache-from', 'gcr.io/$PROJECT_ID/mysql:latest',
    'mysql/.',
  ]
  env:
  - "MYSQL_ROOT_PASSWORD=password"
  waitFor: ['-'] # start immediately
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



