forked from fabric8io-images/s2i
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
29 lines (26 loc) · 1011 Bytes
/
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
machine:
services:
- docker
dependencies:
pre:
- test -n "$DOCKER_USER" && docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
test:
override:
- echo Heureka
deployment:
latest:
branch: master
owner: fabric8io-images
commands:
- test -n "$DOCKER_USER" && cd java && ( docker build -t fabric8/s2i-java:latest . | cat - )
- test -n "$DOCKER_USER" && docker push fabric8/s2i-java:latest | cat -
- test -n "$DOCKER_USER" && cd karaf && ( docker build -t fabric8/s2i-karaf:latest . | cat - )
- test -n "$DOCKER_USER" && docker push fabric8/s2i-karaf:latest | cat -
release:
tag: /v[0-9]+(\.[0-9]+){2}/
owner: fabric8io-images
commands:
- cd java && ( docker build -t fabric8/s2i-java:${CIRCLE_TAG/#v/} . | cat - )
- docker push fabric8/s2i-java:${CIRCLE_TAG/#v/} | cat -
- cd karaf && ( docker build -t fabric8/s2i-karaf:${CIRCLE_TAG/#v/} . | cat - )
- docker push fabric8/s2i-karaf:${CIRCLE_TAG/#v/} | cat -