File tree 2 files changed +49
-36
lines changed
2 files changed +49
-36
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+
3
+ jobs :
4
+ test :
5
+ machine :
6
+ docker_layer_caching : true
7
+ working_directory : ~/codeclimate/codeclimate-pmd
8
+ steps :
9
+ - checkout
10
+ - run : make image
11
+ - run : make test
12
+
13
+ release_images :
14
+ machine :
15
+ docker_layer_caching : true
16
+ working_directory : ~/codeclimate/codeclimate-pmd
17
+ steps :
18
+ - checkout
19
+ - run :
20
+ name : Validate owner
21
+ command : |
22
+ if [ "$CIRCLE_PROJECT_USERNAME" -ne "codeclimate" ]
23
+ then
24
+ echo "Skipping release for non-codeclimate branches"
25
+ circleci step halt
26
+ fi
27
+ - run : make image
28
+ - run : echo "$GCR_JSON_KEY" | docker login -u _json_key --password-stdin us.gcr.io
29
+ - run :
30
+ name : Push image to GCR
31
+ command : |
32
+ docker tag $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME \
33
+ us.gcr.io/code-climate/codeclimate-pmd:b$CIRCLE_BUILD_NUM
34
+ docker push us.gcr.io/code-climate/codeclimate-pmd:b$CIRCLE_BUILD_NUM
35
+
36
+ workflows :
37
+ version : 2
38
+ build_deploy :
39
+ jobs :
40
+ - test
41
+ - release_images :
42
+ requires :
43
+ - test
44
+ filters :
45
+ branches :
46
+ only : /master|channel\/[\w-]+/
47
+ notify :
48
+ webhooks :
49
+ - url : https://cc-slack-proxy.herokuapp.com/circle
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments