travis: Push next builds under separate tag
This prevents overwriting next builds with master output, and vice versa. Users can now decide if they want more or less bleeding edge. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
1e11d314e8
commit
b30a8ebc3b
@ -34,10 +34,14 @@ jobs:
|
||||
master|next|"$TAG")
|
||||
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
|
||||
for IMAGE in kasproject/kas kasproject/kas-isar; do
|
||||
docker push $IMAGE;
|
||||
if [ "$TRAVIS_BRANCH" == "$TAG" ]; then
|
||||
docker tag $IMAGE $IMAGE:$TAG;
|
||||
docker push $IMAGE:$TAG;
|
||||
elif [ "$TRAVIS_BRANCH" == "next" ]; then
|
||||
docker tag $IMAGE $IMAGE:next;
|
||||
docker push $IMAGE:next;
|
||||
else
|
||||
docker push $IMAGE;
|
||||
fi
|
||||
done
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user