#!/bin/sh

# docker tag SOURCE_IMAGE[:TAG] 192.168.100.2:5000/uulm/<COMPONENT_NAME>:<VERSION>
# docker push 192.168.100.2:5000/uulm/<COMPONENT_NAME>:<VERSION>

TA_VERSION=v1.2.0
LOCAL_IMAGE="aggregator"
REMOTE_IMAGE="uc6aggnode"

docker build -t $LOCAL_IMAGE .
docker tag $LOCAL_IMAGE:latest 192.168.100.2:5000/uulm/$REMOTE_IMAGE:$TA_VERSION
docker push 192.168.100.2:5000/uulm/$REMOTE_IMAGE:$TA_VERSION
