dev-build-and-store.sh 522 B

1234567891011121314
  1. #!/bin/bash
  2. set -e
  3. build_tag="build-$(date +%Y%m%d-%H%M)"
  4. echo Build tag $build_tag
  5. docker build --no-cache -t mongo-db-init:$build_tag .
  6. #docker build -t mongo-db-init:$build_tag .
  7. docker tag mongo-db-init:$build_tag dev-registry.infoclinica.ru:5000/iru/mongo-db-init:$build_tag
  8. docker tag mongo-db-init:$build_tag dev-registry.infoclinica.ru:5000/iru/mongo-db-init:latest
  9. docker push dev-registry.infoclinica.ru:5000/iru/mongo-db-init:$build_tag
  10. docker push dev-registry.infoclinica.ru:5000/iru/mongo-db-init:latest