-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathconfig.yml
42 lines (39 loc) · 1.02 KB
/
config.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
36
37
38
39
40
41
42
version: 2
jobs:
build_and_test:
docker:
- image: circleci/python:latest
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
- run: make image
- run: make citest
release_images:
docker:
- image: circleci/python:latest
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
- run: echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- run:
name: Push image to Dockerhub
command: |
make release RELEASE_TAG="b$CIRCLE_BUILD_NUM"
make release RELEASE_TAG="$(echo $CIRCLE_BRANCH | grep -oP 'channel/\K[\w\-]+')"
workflows:
version: 2
build_deploy:
jobs:
- build_and_test
- release_images:
context: Quality
requires:
- build_and_test
filters:
branches:
only: /master|channel\/[\w-]+/
notify:
webhooks:
- url: https://cc-slack-proxy.herokuapp.com/circle