Skip to content

Commit e1b7aca

Browse files
author
ABaldwinHunter
committed
update registry reference for circle
This change should allow tests to pass on PRs from forks And fix #8
1 parent cee6922 commit e1b7aca

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

circle.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,24 @@ machine:
33
- docker
44
environment:
55
CLOUDSDK_CORE_DISABLE_PROMPTS: 1
6-
image_name: codeclimate-fixme
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:
17-
- docker build -t=$registry_root/$image_name:b$CIRCLE_BUILD_NUM .
10+
- docker build -t=$PRIVATE_REGISTRY/$image_name:b$CIRCLE_BUILD_NUM .
11+
- docker run $PRIVATE_REGISTRY/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM bundle exec rake
1812

1913
deployment:
2014
registry:
2115
branch: master
16+
owner: codeclimate
2217
commands:
23-
- 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 --key-file /tmp/gcloud_key.json
21+
- gcloud docker -a
22+
- docker push $PRIVATE_REGISTRY/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM
23+
24+
notify:
25+
webhooks:
26+
- url: https://cc-slack-proxy.herokuapp.com/circle

0 commit comments

Comments
 (0)