This repository was archived by the owner on Jul 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +55
-36
lines changed
Expand file tree Collapse file tree 4 files changed +55
-36
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ jobs :
3+ build_and_test :
4+ docker :
5+ - image : circleci/python:latest
6+ steps :
7+ - checkout
8+ - setup_remote_docker :
9+ docker_layer_caching : true
10+
11+ - run : make image
12+ - run : make citest
13+
14+ release_images :
15+ docker :
16+ - image : circleci/python:latest
17+ steps :
18+ - checkout
19+ - setup_remote_docker :
20+ docker_layer_caching : true
21+ - run : docker login -u _json_key -p "$GCR_JSON_KEY" us.gcr.io
22+ - run : bin/deploy
23+
24+ workflows :
25+ version : 2
26+ build_deploy :
27+ jobs :
28+ - build_and_test
29+ - release_images :
30+ requires :
31+ - build_and_test
32+ notify :
33+ webhooks :
34+ - url : https://cc-slack-proxy.herokuapp.com/circle
Original file line number Diff line number Diff line change 1- .PHONY : image test citest
1+ .PHONY : image test citest release
22
33IMAGE_NAME ?= codeclimate/codeclimate-duplication
44
@@ -16,3 +16,8 @@ bundle:
1616 --entrypoint /bin/sh \
1717 --volume $(PWD ) :/usr/src/app \
1818 $(IMAGE_NAME ) -c " bundle $( BUNDLE_ARGS) "
19+
20+ release : image
21+ docker tag $(IMAGE_NAME ) \
22+ us.gcr.io/code_climate/codeclimate-duplication:$(RELEASE_TAG )
23+ docker push us.gcr.io/code_climate/codeclimate-duplication:$(RELEASE_TAG )
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ set -e
3+
4+ case " $CIRCLE_BRANCH " in
5+ master)
6+ make release \
7+ RELEASE_TAG=" b$CIRCLE_BUILD_NUM "
8+ ;;
9+ * )
10+ if [[ " $CIRCLE_BRANCH " =~ ^channel/[\w -]+ ]]; then
11+ make release \
12+ RELEASE_TAG=" b$CIRCLE_BUILD_NUM "
13+ fi
14+ ;;
15+ esac
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments