Skip to content

Commit

Permalink
including github integration component (bark) (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-tschumak committed Sep 21, 2017
1 parent 4d83985 commit 91ecf98
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .delivery/build-and-push.sh
Expand Up @@ -19,6 +19,7 @@ changed_files=($(curl -s https://api.github.com/repos/zalando-incubator/zally/pu

server_changed=false
web_ui_changed=false
ghe_integration_changed=false

for f in "${changed_files[@]}"
do
Expand All @@ -28,6 +29,9 @@ do
if [[ $f == web-ui/* ]]; then
web_ui_changed=true
fi
if [[ $f == github-integration/* ]]; then
ghe_integration_changed=true
fi
done

# Build and push Docker images
Expand All @@ -37,11 +41,21 @@ if [ "$server_changed" = true ]; then
cd ${REPO_ROOT}/server
docker build -t "${DOCKER_HOST}/${DOCKER_TEAM}/zally:${DOCKER_VERSION}" .
docker push "${DOCKER_HOST}/${DOCKER_TEAM}/zally:${DOCKER_VERSION}"
echo "Zally Server has been built and pushed"
fi

if [ "$web_ui_changed" = true ]; then
echo "Building and pushing Zally Web UI Dummy"
cd ${REPO_ROOT}/web-ui
docker build -t "${DOCKER_HOST}/${DOCKER_TEAM}/zally-web-ui-dummy:${DOCKER_VERSION}" .
docker push "${DOCKER_HOST}/${DOCKER_TEAM}/zally-web-ui-dummy:${DOCKER_VERSION}"
echo "Zally Web UI has been built and pushed"
fi

if [ "$ghe_integration_changed" = true ]; then
echo "Building and pushing Zally Github Integration"
cd ${REPO_ROOT}/github-integration
docker build -t "${DOCKER_HOST}/${DOCKER_TEAM}/zally-github-integration:${DOCKER_VERSION}" .
docker push "${DOCKER_HOST}/${DOCKER_TEAM}/zally-github-integration:${DOCKER_VERSION}"
echo "Zally Github Integration has been built and pushed"
fi
1 change: 1 addition & 0 deletions delivery.yaml
Expand Up @@ -10,5 +10,6 @@ build_steps:
cmd: |
docker run --rm -w /build -v $PWD/server:/build:rw registry.opensource.zalan.do/stups/openjdk:latest ./gradlew build --info
docker run --rm -w /build -v $PWD/web-ui:/build:rw node:7 bash -c 'npm install -q ; npm test ; npm run build'
docker run --rm -w /build -v $PWD/github-integration:/build:rw registry.opensource.zalan.do/stups/openjdk:latest ./gradlew build -x test --info
- desc: "Build and Push Docker Images"
cmd: bash .delivery/build-and-push.sh

0 comments on commit 91ecf98

Please sign in to comment.