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