Skip to content

Instantly share code, notes, and snippets.

@Philmod
Created December 1, 2017 18:13
Show Gist options
  • Save Philmod/bf424bd83a685fc2aee14782fbfc2f99 to your computer and use it in GitHub Desktop.
Save Philmod/bf424bd83a685fc2aee14782fbfc2f99 to your computer and use it in GitHub Desktop.
Simple GCB example for node.js
steps:
- name: 'gcr.io/cloud-builders/npm'
args: ['install']
- name: 'gcr.io/cloud-builders/npm'
args: ['test']
- name: 'gcr.io/cloud-builders/docker'
args: ["build", "-t", "gcr.io/$PROJECT_ID/my-image", "."]
images: ["gcr.io/$PROJECT_ID/my-image"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment