Skip to content

Instantly share code, notes, and snippets.

@nk-gears
Forked from ShakataGaNai/cloudbuild.yaml
Created October 4, 2018 15:19
Show Gist options
  • Save nk-gears/8407083cf1d5871f7cb438b44f2a5fcd to your computer and use it in GitHub Desktop.
Save nk-gears/8407083cf1d5871f7cb438b44f2a5fcd to your computer and use it in GitHub Desktop.
A sample cloudbuild.yml - details at https://obviate.io/?p=7913
steps:
- name: 'gcr.io/cloud-builders/docker'
args: [ 'build', '-t', 'gcr.io/yourorg/mystaticsite:$COMMIT_SHA', '.' ]
- name: 'gcr.io/cloud-builders/docker'
args: [ 'build', '-t', 'gcr.io/yourorg/mystaticsite:latest', '.' ]
images:
- 'gcr.io/yourorg/mystaticsite:$COMMIT_SHA'
- 'gcr.io/yourorg/mystaticsite:latest'
tags:
- "cloudbuild"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment