--- /dev/null
+#!/bin/bash
+set -e
+
+config__flawed_setup__zookeeper=config/flawed-setup--zookeeper
+config__flawed_setup__zookeeper__ROOT=grundlagen/docker
+grundlagen__simple_producer=grundlagen/simple-producer
+grundlagen__simple_producer__ROOT=grundlagen/docker
+grundlagen__simple_producer__vorlage=grundlagen/simple-producer--vorlage
+grundlagen__simple_producer__vorlage__ROOT=grundlagen/simple-producer
+grundlagen__simple_consumer=grundlagen/simple-consumer
+grundlagen__simple_consumer__ROOT=grundlagen/simple-producer
+grundlagen__simple_consumer__vorlage=grundlagen/simple-consumer--vorlage
+grundlagen__simple_consumer__vorlage__ROOT=grundlagen/simple-consumer
+producer__spring_producer=producer/spring-producer
+producer__spring_producer__ROOT=grundlagen/simple-producer
+producer__rest_producer=producer/rest-producer
+producer__rest_producer__ROOT=producer/spring-producer
+consumer__spring_consumer=consumer/spring-consumer
+consumer__spring_consumer__ROOT=grundlagen/simple-consumer
+
+BRANCHES="\
+ config__flawed_setup__zookeeper \
+ grundlagen__simple_producer \
+ grundlagen__simple_producer__vorlage \
+ grundlagen__simple_consumer \
+ grundlagen__simple_consumer__vorlage \
+ producer__spring_producer \
+ producer__rest_producer \
+ consumer__spring_consumer \
+ "
--- /dev/null
+#!/bin/bash
+set -e
+
+source BRANCHES.sh
+
+for i in $BRANCHES;
+do
+ declare -n branch=${i}
+ git checkout $branch
+ if [ -e 'pom.xml' ]
+ then
+ if [[ $branch =~ "--vorlage" ]]
+ then
+ echo -e "\nIgnoriere Vorlage...\n"
+ else
+ echo -e "\nBuilding $branch"
+ ./README.sh build
+ echo -e "\nPushing Docker image for $branch"
+ mvn docker:push
+ fi
+ else
+ echo -e "\nIgnoriere Branch $branch ohne Projekt...\n"
+ fi
+done
--- /dev/null
+#!/bin/bash
+set -e
+
+source BRANCHES.sh
+
+for i in $BRANCHES;
+do
+ declare -n branch=${i}
+ echo -e "\nPushing $branch over origin/$branch"
+ git tag -f ${branch}--BACKUP-ORIGIN--$(date +'%Y-%m-%d--%H-%M-%S') origin/$branch
+ git tag -f ${branch}--BACKUP-ORIGIN--LAST origin/$branch
+ git push --force origin $branch:$branch
+done