forked from HBPMedical/woken
-
Notifications
You must be signed in to change notification settings - Fork 0
/
captain.yml
26 lines (25 loc) · 828 Bytes
/
captain.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
# Builder image
# Creates a portable environemnt to build this project.
# Do not push this image to Docker hub.
builder:
build: Dockerfile.builder
image: woken-build
pre:
- echo "Building woken builder image"
- ./after-update.sh
post:
- echo $VERSION
- echo "Finished building woken builder image"
- echo "Building project..."
- docker run --rm -ti -u build --network="host" -v $WORKSPACE:/build/ -v $USER_HOME/.m2:/home/build/.m2/ -v $USER_HOME/.ivy2:/home/build/.ivy2 -e "VERSION=$VERSION" woken-build
- cp target/scala-2.11/woken-assembly-$VERSION.jar target/scala-2.11/woken.jar
- echo "Finished building project"
test:
- tests/test.sh
woken:
build: Dockerfile
image: hbpmip/woken
pre:
- echo "Building woken image"
post:
- echo "Finished building woken image"