Created
April 6, 2020 04:03
-
-
Save seahrh/eed930e5ca0b8b6a735c4752375e9cff to your computer and use it in GitHub Desktop.
cloudbuild minimal working example: tests, build docker and push to gcr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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