Build and push burnham Docker image on Circle CI

This commit is contained in:
Raphael Pierzina 2020-06-15 21:50:49 +02:00
Родитель 4b84557dca
Коммит 3efbeab861
1 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -1,5 +1,9 @@
version: 2.1
# See https://circleci.com/orbs/registry/orb/circleci/gcp-gcr
orbs:
gcp-gcr: circleci/gcp-gcr@0.6.1
jobs:
run_checks:
docker:
@ -30,3 +34,16 @@ workflows:
matrix:
parameters:
tox_env: ["flake8", "mypy", "py37"]
- gcp-gcr/build-and-push-image:
# This step relies on several environment variables provided to the
# build job via Circle CI configuration:
# GCLOUD_SERVICE_KEY
# GOOGLE_PROJECT_ID
# GOOGLE_COMPUTE_ZONE
path: application
image: burnham
requires:
- run_checks
filters:
branches:
only: main