#!/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="${1}" IMAGE="${REGISTRY}/${IMAGE_NAME}:${TAG}" echo "Going to build and push image ${IMAGE}" docker build -t "${IMAGE}" . # docker push "${1}"