-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
28 lines (27 loc) · 896 Bytes
/
circle.yml
File metadata and controls
28 lines (27 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
machine:
services:
- docker
java:
version: oraclejdk8
dependencies:
cache_directories:
- ~/.ivy2
- ~/.sbt
- ~/google-cloud-sdk
- ~/docker
checkout:
post:
- mkdir ${HOME}/.ivy2 -p
- echo $ARTIFACTORY_CREDS | base64 --decode > ${HOME}/.ivy2/.credentials
test:
override:
- sbt assembly
- echo $GCLOUD_SERVICE_KEY | base64 --decode > ${HOME}/gcloud-service-key.json
- gcloud auth activate-service-account --key-file ${HOME}/gcloud-service-key.json
- gcloud config set project $GCLOUD_PROJECT
- gcloud docker -a
- docker build -t red/theia .
- docker tag red/theia gcr.io/$GCLOUD_PROJECT/theia:${CIRCLE_BRANCH}_${CIRCLE_SHA1:0:7}
- docker tag red/theia gcr.io/$GCLOUD_PROJECT/theia:${CIRCLE_BRANCH}_latest
- docker tag red/theia gcr.io/$GCLOUD_PROJECT/theia:latest
- gcloud docker -- push gcr.io/$GCLOUD_PROJECT/theia