forked from derekoneil/twitter-feed-oke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
27 lines (25 loc) · 802 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
#Use OpenJDK base docker image from dockerhub and open the application port on the docker container
box:
id: openjdk:8
ports:
- 8080
#Build our application using Maven, just as we always have
build:
steps:
- install-packages:
packages: maven
- script:
name: maven build
code: mvn clean assembly:assembly
#Push the docker image with our built and tested application to the Oracle Container Registry
push-release:
steps:
- internal/docker-push:
username: $DOCKER_USERNAME
password: $OCI_AUTH_TOKEN
repository: $DOCKER_REGISTRY/$DOCKER_REPO
registry: https://$DOCKER_REGISTRY/v2
tag: $WERCKER_GIT_BRANCH-$WERCKER_GIT_COMMIT
working-dir: /pipeline/source
ports: 8080
cmd: sh target/bin/start