nationtech-website/sreez/build_docker.sh
2024-04-12 16:05:50 -04:00

19 lines
322 B
Bash
Executable File

#!/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}"