Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8 from microservices-demo/fix-push-script
Browse files Browse the repository at this point in the history
Fix script
  • Loading branch information
pidster committed Jan 10, 2017
2 parents 648343f + bb5af71 commit 820b5f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ script:
- set -e
- curl -o docker-compose.yml -sSL https://raw.githubusercontent.com/microservices-demo/microservices-demo/master/deploy/docker-compose/docker-compose.yml
- docker-compose -f docker-compose.yml up -d
- docker build -t weaveworksdemos/load-test .
- docker build -t ${GROUP}/${REPO}:${COMMIT} .
- docker run --rm --net loadtest_default -t weaveworksdemos/load-test -d 180 -h edge-router -c 250 -r 2500

after_success:
Expand Down
13 changes: 6 additions & 7 deletions push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ tag_and_push_all() {
else
TAG=$1
fi
for m in ./docker/*/; do
REPO=${GROUP}/$(basename $m)
if [[ "$COMMIT" != "$TAG" ]]; then
docker tag ${REPO}:${COMMIT} ${REPO}:${TAG}
fi
push "$REPO:$TAG";
done;
DOCKER_REPO=${GROUP}/${REPO}
if [[ "$COMMIT" != "$TAG" ]]; then
echo "Tagging docker release"
docker tag ${DOCKER_REPO}:${COMMIT} ${DOCKER_REPO}:${TAG}
fi
push "$DOCKER_REPO:$TAG";
}

# Always push commit
Expand Down

0 comments on commit 820b5f7

Please sign in to comment.