#!/usr/bin/env bash

set -euo pipefail

setup_version=$(python setup.py --version 2> /dev/null)

image_version="${setup_version}"

echo "using image version tag: $image_version"

setup_repo_name=$(python setup.py --name 2> /dev/null)

eks_docker_registry="maestro.docker.zooxlabs.com/$setup_repo_name:$image_version"

ecs_docker_registry="docker-registry.zooxlabs.com/maestro_integration_tests:$image_version"

docker build -t "$eks_docker_registry" -t "$ecs_docker_registry" .
