Build and push burnham Docker image on Circle CI
This commit is contained in:
Родитель
4b84557dca
Коммит
3efbeab861
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче