-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
35 lines (31 loc) · 1.04 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
machine:
environment:
CLOUDSDK_CORE_DISABLE_PROMPTS: 1
BASE_BUILD_TAG: iqtk-base
BUILD_TAG: iqtk:0.0.4
services:
- docker
dependencies:
cache_directories:
#- "/home/ubuntu/.cache/bazel"
#- "~/docker"
- ~/google-cloud-sdk
override:
- docker info
- if [[ -e ~/docker/build-cache.tar ]]; then docker load --input ~/docker/build-cache.tar; fi
- inquiry/tools/ci_build/ci_build.sh ls /bazel
- mkdir -p ~/docker; docker save ${BASE_BUILD_TAG} > ~/docker/build-cache.tar
test:
override:
- inquiry/tools/ci_build/ensure_gcloud_installed.sh
- inquiry/tools/ci_build/ci_build.sh inquiry/tools/ci_build/builds/pip.sh
post:
- inquiry/tools/ci_build/builds/build_container.sh
deployment:
prod:
branch: master
commands:
# Quay registry push requires quay creds. specified as environment vars.
# via. the CircleCI settings UI (Build settings > Environment variables)
# i.e. QUAY_IO_IQTK_UNAME and QUAY_IO_IQTK_PASSWORD
- inquiry/tools/ci_build/builds/deploy_container.sh