-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add travis build and DockerHub push (#24)
Update .travis.yml to build and push to DockerHub
- Loading branch information
Showing
3 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
services: | ||
- docker | ||
|
||
script: | ||
- docker build -t pegasystems/pega-ready . | ||
env: | ||
global: | ||
- secure: "eumCrUvnKXEJd+6bV6WB03O4H1CSUB2wcTFIXL8liYrDJgU4690gTX+N85xZvo3Fjb4XeIEfjmhuxzO9XiypPdqM/Q2o06ryTWnxOdIGtnAMLClRqsJKwjZXxT2L5YfDaHZgzTQDiT7GuxtHfVsGU4vnpUpA2+UR+zQR2M9itkdwI6msZww9zyy+i+s5HLhOCWiyc0sFQrMTeJhu5d3SiqfF5QMEGlkO3IzYQR+r1QGNgaMeZgAiqArS/uLfJ0AubDrtChXc7IVP7RERa5RIa+PeHrCQEWPn92G0cLj3wozpTyti8saurPMkWVu3FQ7YquFFRVrb8BB7sDUG7M9lsHu4wVrajUWebG235uCcyMd8d6i3WgCg/reBdEY05p7lwH0T7noFfUTC2Cz5hLvzd18kgMSf5H58stUzlkKQ73lqosbOZBHW5jIy35qcmoe9UVcBrUl9mvRToahD5xDyjndaZBVGIyxlu0DdkZOnfvPztIkSxFsymzjy5RX4cqU1g5PA8Xfbck1DtOxnlpKm28tengMqqSP/I4C00IoUK2kQODiMrK0gJoZ5MO4anKM8Eda3Hnzh10ZPRq6EaZqb2TCuNduKOVWxqopst9Ros0+JsDy1evN+Xu+XdZhcR2We42YI+c05K0wYEmqxRlEHImG8d5BahHNGoJ8AfUICaNE=" | ||
- secure: "Pu8tfrmmWAnQYmgZ9fmiosVj22XeoZ6mSwSKe3knjmLQYC8A/9VJSFjpZn11dqUQokhZMbgbTYthp4c4/JW7cy8nGWykg7a/osiWqNAuPYiJl+oUmPJcxW0Enagq8p5+RNbFfeND4GyX5ZdBi0xRaGh2CgUbmVYxbaSfq0Sbkfzgl4HkF8uqBPkjdfQLBJ/kAe5prXkAAAyu58LYvPNjpMoOSlOS+c7F+XNokMLzlsL+sKE/CC2l6tLjDslxLX5CzW8jA1vBkqhThAO0Fe5UYv+6AqDBfsYBro01bgmfMR9F/IwBkOH3eFcs/icm5BOeYaQ2It5YEhbSW1CY8U/iFmKkpKWe5q8Jw4fgRPB4QTcVu/M0ffvWtlaTwCV0T9kE93imfQidfrRSTbnDnZwunxpn3Ymx8OAhEzeLndq56wq0ShIJTkh65mtkHVf+75dQ6F4nHwB+RkhHT6ggGWGUNcYOkMb+UQq4bzpGmQNJC9zdFtqOp1EcB5WnlOrDxbyxJ8yrYNvKvJ8+wi1K+Z/RZvRCCE+P2AJQc2mMlgKelP7WUPnhcNRTEyMa6Q6L0EklluVRR3b4N7nbpqlwU+lYU2pyJ764ULNXJJfk7CmC3dhI3PBQ/BreFYNNd7TujrNK53T41VAYfHxhIoz8lwsHT/fOIKAKE7LLqXvbR3Tp+wo=" | ||
|
||
install: | ||
- make image | ||
- docker images | ||
|
||
script: | ||
- docker run -d -p 8080:8080 --name pega-ready pegasystems/pega-ready | ||
- docker ps | ||
|
||
before_deploy: | ||
- docker login -u="$DOCKER_USER" -p="$DOCKER_PASS" | ||
|
||
deploy: | ||
provider: script | ||
script: make push | ||
on: | ||
repo: pegasystems/docker-pega-web-ready | ||
branch: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
TAG = "2.0.0" | ||
PREFIX = $(shell git config --get remote.origin.url | tr ':.' '/' | rev | cut -d '/' -f 3 | rev) | ||
REPO_NAME = "pega-ready" | ||
|
||
all: image | ||
|
||
container: image | ||
|
||
image: | ||
docker build -t $(PREFIX)/$(REPO_NAME) . # Build new image and automatically tag it as latest | ||
docker tag $(PREFIX)/$(REPO_NAME) $(PREFIX)/$(REPO_NAME):$(TAG) # Add the version tag to the latest image | ||
|
||
push: image | ||
docker push $(PREFIX)/$(REPO_NAME) |