-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathcircle.yml
36 lines (33 loc) · 1.19 KB
/
circle.yml
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
29
30
31
32
33
34
35
36
machine:
node:
version: 7.7.1
dependencies:
cache_directories:
- node_modules
test:
override:
- ./node_modules/.bin/integration-loader && ./node_modules/.bin/integration setup
- ./node_modules/.bin/integration test ilp-kit
deployment:
development:
branch: master
commands:
# Publish spec
- git config --global user.email "[email protected]"
- git config --global user.name "CircleCI"
- git config --global push.default simple
- node api/scripts/publish_web.js
production:
branch: release
commands:
# Build and push Docker image tagged latest and tagged with commit descriptor
- docker build -t interledgerjs/ilp-kit:latest .
- docker tag interledgerjs/ilp-kit:latest interledgerjs/ilp-kit:"$(git describe --tags)"
- sed "s/<AUTH>/${DOCKER_TOKEN}/" < "dockercfg-template" > ~/.dockercfg
- docker push interledgerjs/ilp-kit:latest
- docker push interledgerjs/ilp-kit:"$(git describe --tags)"
# Publish spec
- git config --global user.email "[email protected]"
- git config --global user.name "CircleCI"
- git config --global push.default simple
- node api/scripts/publish_web.js