forked from romain-grecourt/wercker-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
38 lines (35 loc) · 1.22 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
# This references an OpenJDK container from the
# Docker Hub https://hub.docker.com/_/openjdk/
# Read more about containers on our dev center
# http://devcenter.wercker.com/docs/containers/index.html
box: openjdk:8-jdk
# This is the build pipeline. Pipelines are the core of wercker
# Read more about pipelines on our dev center
# http://devcenter.wercker.com/docs/pipelines/index.html
build:
# Steps make up the actions in your pipeline
# Read more about steps on our dev center:
# http://devcenter.wercker.com/docs/steps/index.html
steps:
# https://github.com/wercker/step-maven
- wercker/maven:
goals: install
cache_repo: true
version: 3.5.3
- internal/docker-build:
dockerfile: simple-service/target/Dockerfile
image-name: simple-service
- internal/docker-push:
image-name: simple-service
username: $DOCKER_ID_USER
password: $DOCKER_ID_PASSWORD
repository: docker.io/$DOCKER_ID_USER/simple-service
tag: latest
#deploy:
# steps:
# - internal/docker-push:
# image-name: simple-service
# username: $DOCKER_ID_USER
# password: $DOCKER_ID_PASSWORD
# repository: $DOCKER_ID_USER/simple-service
# tag: latest