From a39bb56c0da8be98d811757adbf08b9fd494512e Mon Sep 17 00:00:00 2001 From: Gordon Diggs Date: Mon, 15 Aug 2016 17:28:42 -0400 Subject: [PATCH] Update circle to use patrick --- circle.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/circle.yml b/circle.yml index f2c3c0b..43505ee 100644 --- a/circle.yml +++ b/circle.yml @@ -1,8 +1,17 @@ machine: services: - docker - environment: - CLOUDSDK_CORE_DISABLE_PROMPTS: 1 + +dependencies: + override: + - > + docker run + --env CIRCLE_BRANCH + --env CIRCLE_PROJECT_REPONAME + --env CIRCLE_TOKEN + --env GCR_JSON_KEY + --volume /var/run/docker.sock:/var/run/docker.sock + codeclimate/patrick pull || true test: override: @@ -12,10 +21,14 @@ deployment: registry: branch: master commands: - - echo $gcloud_json_key_base64 | sed 's/ //g' | base64 -d > /tmp/gcloud_key.json - - docker tag codeclimate/codeclimate-csslint $registry_root/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM - - gcloud auth activate-service-account --key-file /tmp/gcloud_key.json - - gcloud docker push $registry_root/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM + - > + docker run + --env CIRCLE_BUILD_NUM + --env CIRCLE_PROJECT_REPONAME + --env GCR_JSON_KEY + --volume /var/run/docker.sock:/var/run/docker.sock + codeclimate/patrick push gcr + notify: webhooks: - url: https://cc-slack-proxy.herokuapp.com/circle