-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
39 lines (33 loc) · 897 Bytes
/
wercker.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
box: java
dev:
steps:
- script:
name: gradle bootRun
code: |
./gradlew bootRun
# Build Application
build:
steps:
- script:
name: Run Junit tests
code: |
./gradlew --full-stacktrace test
- script:
name: Gradle Build
code: |
./gradlew --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR build
- script:
name: Place JAR in output directory
code: |
mv build/libs/time-api-*.jar $WERCKER_OUTPUT_DIR/time-api.jar
mv *.template $WERCKER_OUTPUT_DIR/
# Push Docker Image
push-image:
steps:
- internal/docker-push:
cmd: java -jar /pipeline/source/time-api.jar
tag: $WERCKER_GIT_BRANCH
ports: "8080"
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD
repository: $DOCKER_REPO