-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcircle.yml
More file actions
25 lines (22 loc) · 812 Bytes
/
circle.yml
File metadata and controls
25 lines (22 loc) · 812 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
machine:
services:
- docker
dependencies:
override:
- sudo pip install requests==2.11.1 jinja2==2.8 ansible==2.1.0
- chmod 600 image/id_rsa
- ./create_nodejs_image.sh $BUILD_LEVEL
- docker images
- docker history quay.io/syncano/nodejs-codebox
test:
override:
- docker run -it -v `pwd`/test.js:/tmp/test.js quay.io/syncano/nodejs-codebox node-lib0.4 /tmp/test.js
- docker run -it -v `pwd`/test.js:/tmp/test.js quay.io/syncano/nodejs-codebox node-lib1.0 /tmp/test.js
deployment:
production:
branch:
- master
commands:
- curl -X POST $REFRESH_SCRIPT_URL
- sed -e "s|<REGISTRY>|$DOCKER_REGISTRY|g" -e "s|<EMAIL>|$DOCKER_EMAIL|g" -e "s|<AUTH>|$DOCKER_AUTH|g" < .dockercfg.template > ~/.dockercfg
- docker push quay.io/syncano/nodejs-codebox