#!/usr/bin/env bash

set -euo pipefail

source version.sh
image_name="docker-registry.zooxlabs.com/pipedream_traffic_control:$version"

cd "$( (builtin cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) )"

(
  set -x
  docker build ./ --tag "$image_name"
  docker push "$image_name"
)

echo Success!
