Skip to content

Commit f6d948a

Browse files
committed
Update circle.yml to push builds to gcloud
1 parent 05900c8 commit f6d948a

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

circle.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
machine:
22
services:
33
- 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
414

515
test:
616
override:
7-
- 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

Comments
 (0)