#!/bin/bash set -e build_tag="build-$(date +%Y%m%d-%H%M)" echo Build tag $build_tag docker build --no-cache -t mongo-db-init:$build_tag . #docker build -t mongo-db-init:$build_tag . docker tag mongo-db-init:$build_tag dev-registry.infoclinica.ru:5000/iru/mongo-db-init:$build_tag docker tag mongo-db-init:$build_tag dev-registry.infoclinica.ru:5000/iru/mongo-db-init:latest docker push dev-registry.infoclinica.ru:5000/iru/mongo-db-init:$build_tag docker push dev-registry.infoclinica.ru:5000/iru/mongo-db-init:latest