Skip to content

Commit 94ce924

Browse files
author
Ashley Baldwin-Hunter
committed
Merge pull request #9 from codeclimate/abh-update-circle
update circle.yml for automatic deploy
2 parents 929bc85 + aa1597d commit 94ce924

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

circle.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,24 @@ machine:
33
- docker
44
environment:
55
CLOUDSDK_CORE_DISABLE_PROMPTS: 1
6-
image_name: codeclimate-bundler-audit
7-
8-
dependencies:
9-
pre:
10-
- echo $gcloud_json_key_base64 | sed 's/ //g' | base64 -d > /tmp/gcloud_key.json
11-
- curl https://sdk.cloud.google.com | bash
12-
- gcloud auth activate-service-account $gcloud_account_email --key-file /tmp/gcloud_key.json
13-
- gcloud docker -a
6+
PRIVATE_REGISTRY: us.gcr.io/code_climate
147

158
test:
169
override:
1710
- bundle exec rake
18-
- docker build -t=$registry_root/$image_name:b$CIRCLE_BUILD_NUM .
11+
- docker build -t=$PRIVATE_REGISTRY/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM .
1912

2013
deployment:
2114
registry:
2215
branch: master
16+
owner: codeclimate
2317
commands:
24-
- docker push $registry_root/$image_name:b$CIRCLE_BUILD_NUM
18+
- echo $gcloud_json_key_base64 | sed 's/ //g' | base64 -d > /tmp/gcloud_key.json
19+
- curl https://sdk.cloud.google.com | bash
20+
- gcloud auth activate-service-account $gcloud_account_email --key-file /tmp/gcloud_key.json
21+
- gcloud docker -a
22+
- docker push $PRIVATE_REGISTRY/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM
2523

24+
notify:
25+
webhooks:
26+
- url: https://cc-slack-proxy.herokuapp.com/circle

0 commit comments

Comments
 (0)