Skip to content

Instantly share code, notes, and snippets.

@Philmod
Created September 21, 2017 13:18
Show Gist options
  • Save Philmod/d80fd9e123881103b77896b7f83e1b87 to your computer and use it in GitHub Desktop.
Save Philmod/d80fd9e123881103b77896b7f83e1b87 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