Skip to content

Instantly share code, notes, and snippets.

@seahrh
Created April 6, 2020 04:03
Show Gist options
  • Save seahrh/eed930e5ca0b8b6a735c4752375e9cff to your computer and use it in GitHub Desktop.
Save seahrh/eed930e5ca0b8b6a735c4752375e9cff to your computer and use it in GitHub Desktop.
cloudbuild minimal working example: tests, build docker and push to gcr
steps:
- id: 'tests'
name: 'python:3.7-slim-buster'
args: ['bash', './scripts/tests.sh']
- id: 'docker_build'
name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', '${_IMAGE_NAME}:${_IMAGE_TAG}', '.']
images: ['${_IMAGE_NAME}:${_IMAGE_TAG}']
substitutions:
_IMAGE_NAME: 'asia.gcr.io/my_gcp_project/my_app'
_IMAGE_TAG: '1.0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment