-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
51 lines (46 loc) · 1.3 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
# docker box definition
box:
id: oracle/openjdk:8
ports:
- "8080"
# defining the dev pipeline
dev:
steps:
- script:
name: gradle bootRun
code: |
./gradlew bootRun
### REPLACE the above script step with this internal/watch step to enable
### dynamic rebuilding/reloading of the container in response to file changes.
#
# - internal/watch:
# code: |
# ./gradlew bootRun
# reload: true
# Build definition
build:
# The steps that will be executed on build
steps:
# A step that executes `gradle build` command
- script:
name: gradle build
code: |
./gradlew --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR build
- internal/docker-scratch-push:
username: $DOCKER_HUB_USERNAME
password: $DOCKER_HUB_PASSWORD
tag: latest
ports: "8080"
cmd: ./gradlew bootRun
repository: rikgibson/getting-started-java
registry: https://registry.hub.docker.com
push-docker-hub:
steps:
- internal/docker-push:
username: $DOCKER_HUB_USERNAME
password: $DOCKER_HUB_PASSWORD
tag: latest
ports: "8080"
cmd: gradlew bootRun
repository: rikgibson/getting-started-java
registry: https://registry.hub.docker.com