forked from weaveworks/kubediff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
29 lines (26 loc) · 916 Bytes
/
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
machine:
python:
version: 2.7.9
services:
- docker
environment:
PATH: $HOME/bin:$PATH
SRCDIR: $HOME/.go_workspace/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
dependencies:
override:
- make deps
test:
override:
- "mkdir -p $(dirname $SRCDIR) && cp -r $(pwd)/ $SRCDIR"
- "mkdir -p $CIRCLE_TEST_REPORTS/py.test/"
- cd $SRCDIR; make JUNIT_XML=$CIRCLE_TEST_REPORTS/py.test/junit.xml all
deployment:
push:
branch: master
commands:
- docker login -e "$DOCKER_REGISTRY_EMAIL" -u "$DOCKER_REGISTRY_USER" -p "$DOCKER_REGISTRY_PASSWORD"
- docker push weaveworks/kubediff:$(./tools/image-tag)
- docker push weaveworks/kubediff:latest
- docker login -e "." -u "$QUAY_USER" -p "$QUAY_PASSWORD" quay.io
- docker push quay.io/weaveworks/kubediff:$(./tools/image-tag)
- docker push quay.io/weaveworks/kubediff:latest