#!/bin/bash

REGISTRY=registry.nationtech.io
IMAGE_NAME=sreez-website
TAG="v1.2.0"

IMAGE="${REGISTRY}/${IMAGE_NAME}:${TAG}"

echo -n "Going to build and push image ${IMAGE}. [enter] to continue "
read

#docker build -t "${IMAGE}" .

#docker push "${IMAGE}"

echo -n "Image is built and pushed, do you want to commit and deploy this new version ? [enter] to continue, CTRL+C to abort "
read

python ../helm/tools/update_yaml.py ../helm/sreez-website/values.yaml .image.tag "${TAG}"
