Skip to content

Commit b692c13

Browse files
committed
bump version shwitch to node 6
1 parent 61b845d commit b692c13

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ubuntu:trusty
2+
3+
## Install the validator
4+
RUN apt-get update && \
5+
apt-get install -y curl && \
6+
curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
7+
apt-get remove -y curl && \
8+
apt-get install -y nodejs && \
9+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
10+
11+
RUN npm install -g bids-validator@0.19.8

circle.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
machine:
2+
services:
3+
- docker #don't use 1.10 - caching is broken
4+
5+
dependencies:
6+
cache_directories:
7+
- "~/docker"
8+
9+
override:
10+
- if [[ -e ~/docker/image.tar ]]; then docker load -i ~/docker/image.tar; fi
11+
- docker build -t bids/${CIRCLE_PROJECT_REPONAME} . :
12+
timeout: 21600
13+
- mkdir -p ~/docker; docker save "bids/${CIRCLE_PROJECT_REPONAME}" > ~/docker/image.tar
14+
15+
test:
16+
override:
17+
# print version
18+
- echo "pass"
19+
20+
deployment:
21+
hub:
22+
owner: BIDS-Apps
23+
tag: /.*/
24+
commands:
25+
- if [[ -n "$DOCKER_PASS" ]]; then docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS && docker push bids/${CIRCLE_PROJECT_REPONAME}:latest; fi :
26+
timeout: 21600
27+
- if [[ -n "$DOCKER_PASS" ]]; then docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS && docker tag bids/${CIRCLE_PROJECT_REPONAME} bids/${CIRCLE_PROJECT_REPONAME}:$CIRCLE_TAG && docker push bids/${CIRCLE_PROJECT_REPONAME}:$CIRCLE_TAG; fi :
28+
timeout: 21600

0 commit comments

Comments
 (0)