forked from openzipkin/zipkin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
23 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
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,15 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -v | ||
|
||
# This hook is called with the current directory set to the same as the Dockerfile, so we go back | ||
# to top level. | ||
cd .. | ||
|
||
# We always build an image containing nginx and zipkin-lens in addition to the default image of zipkin-server | ||
echo Building zipkin-ui | ||
docker build -f $DOCKERFILE_PATH -t openzipkin/zipkin-ui:$DOCKER_TAG --target zipkin-ui . | ||
IFS=',' read -ra TAGS <<< "$DOCKER_TAG" | ||
docker build -f "$DOCKERFILE_PATH" -t "anuraaga/docker-hub-test-2:${TAGS[0]}" --target zipkin-ui . | ||
for tag in ${TAGS[@]:1}; do | ||
docker tag "anuraaga/docker-hub-test-2:${TAGS[0]}" "anuraaga/docker-hub-test-2:$tag" | ||
done | ||
|
||
if [[ "$DOCKER_TAG" == "master" ]]; then | ||
# We rebuild the builder image on master push, not on release pushes. | ||
echo Building zipkin-builder | ||
docker build -f $DOCKERFILE_PATH -t openzipkin/zipkin-builder --target zipkin-builder . | ||
docker build -f "$DOCKERFILE_PATH" -t anuraaga/docker-hub-test-3 --target zipkin-builder . | ||
fi |
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,15 +1,20 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$DOCKER_REPO" == "index.docker.io/openzipkin/zipkin" ]]; then | ||
set -v | ||
|
||
if [[ "$DOCKER_REPO" == "index.docker.io/anuraaga/docker-hub-test" ]]; then | ||
# We always push an image containing nginx and zipkin-lens in addition to the default image of zipkin-server | ||
echo Pushing zipkin-ui | ||
docker push openzipkin/zipkin-ui:$DOCKER_TAG | ||
IFS=',' read -ra TAGS <<< "$DOCKER_TAG" | ||
for tag in ${TAGS[@]}; do | ||
docker push "anuraaga/docker-hub-test-2:$tag" | ||
done | ||
|
||
if [[ "$DOCKER_TAG" == "master" ]]; then | ||
# We repush the builder image on master push, not on release pushes. | ||
echo Pushing zipkin-builder | ||
# zipkin-builder is just a cache of maven / npm dependencies, there's no need to version it | ||
# with docker tags. | ||
docker push openzipkin/zipkin-builder | ||
docker push anuraaga/docker-hub-test-3 | ||
fi | ||
fi |