forked from gliderlabs/docker-alpine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
46 lines (43 loc) · 1.14 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
37
38
39
40
41
42
43
44
45
46
general:
artifacts:
- "images"
branches:
ignore:
- /rootfs\/.*/
machine:
pre:
- sudo curl -L -o /usr/bin/docker 'https://s3-external-1.amazonaws.com/circle-downloads/docker-1.9.1-circleci'
- sudo chmod 0755 /usr/bin/docker
services:
- docker
dependencies:
cache_directories:
- "~/deps"
pre:
- if [[ ! -e ~/deps/bats_v0.4.0.tar.gz ]]; then mkdir -p ~/deps; curl -sSL -o ~/deps/bats_v0.4.0.tar.gz https://github.com/sstephenson/bats/archive/v0.4.0.tar.gz; fi
- tar -xf ~/deps/bats_v0.4.0.tar.gz
- sudo bats-0.4.0/install.sh /usr/local
override:
- docker info
- ./build:
parallel: true
files:
- versions/**/options
- docker images
test:
override:
- ./build test:
parallel: true
files:
- versions/**/options
post:
- if [[ "$CIRCLE_BRANCH" == "release" ]]; then docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWORD; fi:
parallel: true
- ./build push:
parallel: true
files:
- versions/**/options
- ./build commit:
parallel: true
files:
- versions/**/options