File tree
Expand file treeCollapse file tree1 file changed
+19
-6
lines changed Expand file treeCollapse file tree1 file changed
+19
-6
lines changed Original file line number | Diff line number | Diff line change |
---|
|
1 | 1 | machine:
|
2 | 2 | services:
|
3 | 3 | - docker
|
4 |
| -environment: |
5 |
| -CLOUDSDK_CORE_DISABLE_PROMPTS: 1 |
| 4 | + |
| 5 | +dependencies: |
| 6 | +override: |
| 7 | +- > |
| 8 | +docker run |
| 9 | +--env CIRCLE_BRANCH |
| 10 | +--env CIRCLE_PROJECT_REPONAME |
| 11 | +--env CIRCLE_TOKEN |
| 12 | +--env GCR_JSON_KEY |
| 13 | +--volume /var/run/docker.sock:/var/run/docker.sock |
| 14 | +codeclimate/patrick pull || true |
6 | 15 |
|
7 | 16 | test:
|
8 | 17 | override:
|
@@ -12,10 +21,14 @@ deployment:
|
12 | 21 | registry:
|
13 | 22 | branch: master
|
14 | 23 | commands:
|
15 |
| -- echo $gcloud_json_key_base64 | sed 's/ //g' | base64 -d > /tmp/gcloud_key.json |
16 |
| -- docker tag codeclimate/codeclimate-csslint $registry_root/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM |
17 |
| -- gcloud auth activate-service-account --key-file /tmp/gcloud_key.json |
18 |
| -- gcloud docker push $registry_root/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM |
| 24 | +- > |
| 25 | +docker run |
| 26 | +--env CIRCLE_BUILD_NUM |
| 27 | +--env CIRCLE_PROJECT_REPONAME |
| 28 | +--env GCR_JSON_KEY |
| 29 | +--volume /var/run/docker.sock:/var/run/docker.sock |
| 30 | +codeclimate/patrick push gcr |
| 31 | +
|
19 | 32 | notify:
|
20 | 33 | webhooks:
|
21 | 34 | - url: https://cc-slack-proxy.herokuapp.com/circle
|
You can’t perform that action at this time.
0 commit comments