#!/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>

DOCKERFILE="./Dockerfile"
REGISTRY=192.168.100.2:5000/uulm
REMOTE_IMAGE="training_agent"
TAG=v1.3.0

docker buildx build --platform linux/amd64,linux/arm64 -f $DOCKERFILE -t \
  $REGISTRY/$REMOTE_IMAGE:$TAG . --push
