Skip to content

Instantly share code, notes, and snippets.

@viglesiasce
Created April 21, 2017 22:21
Show Gist options
  • Select an option

  • Save viglesiasce/c1eed0823acd59ce8256352bf1e55960 to your computer and use it in GitHub Desktop.

Select an option

Save viglesiasce/c1eed0823acd59ce8256352bf1e55960 to your computer and use it in GitHub Desktop.
steps:
- name: 'gcr.io/cloud-builders/docker'
id: build
args: ['build', '-t', 'gcr.io/vic-goog/sample-app:latest', '.']
- name: 'gcr.io/vic-goog/sample-app:latest'
id: test
args: ['go', 'test']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['container', 'clusters', 'get-credentials', 'junkyard', '--zone', 'us-west1-a']
env:
- "KUBECONFIG=./.kube/.config"
- name: 'lachlanevenson/k8s-kubectl'
id: deploy
args: ['apply', '-f', 'k8s/production']
env:
- "KUBECONFIG=./.kube/.config"
images: ['gcr.io/vic-goog/sample-app:latest']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment