forked from poldracklab/pydeface
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml
More file actions
39 lines (37 loc) · 1.16 KB
/
Copy pathconfig.yml
File metadata and controls
39 lines (37 loc) · 1.16 KB
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
37
38
39
version: 2
jobs:
build:
machine: true
steps:
- checkout
- run:
name: Docker Bulid and Test
no_output_timeout: 20m
command: |
docker build -t poldracklab/pydeface:$CIRCLE_BUILD_NUM-${CIRCLE_SHA1:0:6} -f Dockerfile .
docker run -it poldracklab/pydeface:$CIRCLE_BUILD_NUM-${CIRCLE_SHA1:0:6} pytest /pydeface
deploy:
machine: true
steps:
- checkout
- run:
name: Docker Build Test and Deploy
no_output_timeout: 20m
command: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker build -t poldracklab/pydeface:$CIRCLE_BUILD_NUM-${CIRCLE_SHA1:0:6} -f Dockerfile .
docker run -it poldracklab/pydeface:$CIRCLE_BUILD_NUM-${CIRCLE_SHA1:0:6} pytest /pydeface
docker tag poldracklab/pydeface:$CIRCLE_BUILD_NUM-${CIRCLE_SHA1:0:6} poldracklab/pydeface:latest
docker push poldracklab/pydeface
workflows:
version: 2
build-or-deploy:
jobs:
- build:
filters:
branches:
ignore: master
- deploy:
filters:
branches:
only: master