Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
fix travis
Browse files Browse the repository at this point in the history
Signed-off-by: Erin Schnabel <[email protected]>
  • Loading branch information
Erin Schnabel committed Aug 23, 2017
1 parent c97e69c commit b240f2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ language: java
jdk:
- openjdk8
env:
- COMMIT=${TRAVIS_COMMIT::8}
- REPO_IMAGE=${DOCKER_REPO}/${DOCKER_IMAGE}
global:
- COMMIT="${TRAVIS_COMMIT::8}"
- REPO_IMAGE="${DOCKER_REPO}/${DOCKER_IMAGE}"
script:
- echo "TRAVIS_BRANCH='$TRAVIS_BRANCH'" \
;if [ "$TRAVIS_BRANCH" == "master" ]; then
;if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
echo "Building and Pushing new image" \
&& docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}" && echo "Login ok" \
&& docker build -t ${REPO_IMAGE}:${COMMIT} ${DOCKER_BUILDDIR} && echo "Build complete" \
&& docker build -t ${REPO_IMAGE}:${COMMIT} ${DOCKER_BUILDDIR} && echo "Build complete ${REPO_IMAGE}:${COMMIT}" \
&& docker tag ${REPO_IMAGE}:${COMMIT} ${REPO_IMAGE}:latest \
&& docker tag ${REPO_IMAGE}:${COMMIT} ${REPO_IMAGE}:travis-${TRAVIS_BUILD_NUMBER} \
&& docker push ${REPO_IMAGE} && echo "Push complete"
&& docker push ${REPO_IMAGE}:${COMMIT} && echo "Push complete"
;else
echo "Not master branch, skipping docker"
;fi
Expand Down
7 changes: 5 additions & 2 deletions haproxy-dev.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@ frontend frontend-ssl
use_backend room if room

acl roomjs path_beg -i /roomjs
use_backend roomjs if roomjs
use_backend roomjs if roomjs

acl swagger path_beg -i /swagger
acl slackin path_beg -i /slackin
use_backend slackin if slackin

acl swagger path_beg -i /swagger
use_backend swagger if swagger

default_backend static-content
Expand Down

0 comments on commit b240f2e

Please sign in to comment.