Skip to content

Instantly share code, notes, and snippets.

@ibrunotome
Last active February 22, 2019 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibrunotome/fba486a897fb4921b7bce2e874982e1e to your computer and use it in GitHub Desktop.
Save ibrunotome/fba486a897fb4921b7bce2e874982e1e to your computer and use it in GitHub Desktop.
Cloud Build example settings for a Nuxt.js application
steps:
- name: 'gcr.io/cloud-builders/gsutil'
args:
- cp
- ${_PRODUCTION_CONFIG}
- config/production.json
- name: 'gcr.io/cloud-builders/npm'
args:
- install
- name: 'gcr.io/cloud-builders/npm'
args:
- run
- lint
- name: 'gcr.io/cloud-builders/npm'
args:
- run
- test
- name: 'gcr.io/cloud-builders/npm'
args:
- run
- build
- name: 'gcr.io/cloud-builders/npm'
args:
- run
- generate
- name: 'gcr.io/cloud-builders/gsutil'
args:
- cp
- ${_APP_YAML_CONFIG}
- app.yaml
- name: 'gcr.io/cloud-builders/gcloud'
args:
- app
- deploy
- --no-promote
timeout: '600s'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment