We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05900c8 commit f6d948aCopy full SHA for f6d948a
circle.yml
@@ -1,7 +1,23 @@
1
machine:
2
services:
3
- docker
4
+ environment:
5
+ CLOUDSDK_CORE_DISABLE_PROMPTS: 1
6
+ image_name: codeclimate-phpmd
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
14
15
test:
16
override:
- - docker build .
17
+ - docker build -t=$registry_root/$image_name:b$CIRCLE_BUILD_NUM .
18
19
+deployment:
20
+ registry:
21
+ branch: master
22
+ commands:
23
+ - docker push $registry_root/$image_name:b$CIRCLE_BUILD_NUM
0 commit comments