#!/bin/bash if [[ -z "${1}" ]] then echo "Specify the image tag as first argument to this script" exit 1 fi REGISTRY=registry.nationtech.io IMAGE_NAME=sreez-website TAG="v1.1.0" IMAGE="${REGISTRY}/${IMAGE_NAME}:${TAG}" echo "Going to build and push image ${IMAGE}" docker build -t "${IMAGE}" . docker push "${IMAGE}" echo "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}"