Skip to content

Instantly share code, notes, and snippets.

@rimusz
Forked from Philmod/cloudbuild.yaml
Created September 21, 2017 13:23
Show Gist options
  • Save rimusz/ed8db91dded47db779af829eec1c7f4f to your computer and use it in GitHub Desktop.
Save rimusz/ed8db91dded47db779af829eec1c7f4f to your computer and use it in GitHub Desktop.
concurrent docker builds on Google Container Builder
steps:
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '-f'
- 'Dockerfile.alpine'
- '-t'
- 'gcr.io/$PROJECT_ID/large-docker-alpine:latest'
- '.'
waitFor: ['-']
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '-f'
- 'Dockerfile.ubuntu'
- '-t'
- 'gcr.io/$PROJECT_ID/large-docker-ubuntu:latest'
- '.'
waitFor: ['-']
images:
- 'gcr.io/$PROJECT_ID/large-docker-alpine:latest'
- 'gcr.io/$PROJECT_ID/large-docker-ubuntu:latest'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment