diff --git a/wercker.yml b/wercker.yml new file mode 100644 index 00000000..827e4ed5 --- /dev/null +++ b/wercker.yml @@ -0,0 +1,29 @@ +#Use OpenJDK base docker image from dockerhub and open the application port on the docker container +box: + id: openjdk + ports: + - $PORT + +#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 Docker Hub +push-release: + steps: + - internal/docker-push: + username: $DOCKER_USERNAME + password: $DOCKER_PASSWORD + repository: $DOCKER_REPO + registry: $DOCKER_REGISTRY + tag: $WERCKER_GIT_BRANCH-$WERCKER_GIT_COMMIT + working-dir: /pipeline/source + ports: $PORT + env: PORT=$PORT + cmd: sh target/bin/start +