#!/bin/bash

## 推送到公司的docker私库，暂时是试用的

cp ../../eureka/target/*.jar docker-gdtel-gztel-hhr/eureka/
cp ../../gateway/target/*.jar docker-gdtel-gztel-hhr/gateway/
cp ../../core-service/target/*.jar docker-gdtel-gztel-hhr/core/
cp ../../apply-net/target/*.jar docker-gdtel-gztel-hhr/applynet/
cp ../../service-manager/target/*.jar docker-gdtel-gztel-hhr/manager/
cp ../../new-user/target/*.jar docker-gdtel-gztel-hhr/newuser/
cp ../../old-user/target/*.jar docker-gdtel-gztel-hhr/olduser/
cp ../../task/target/*.jar docker-gdtel-gztel-hhr/task/

cd docker-gdtel-gztel-hhr/

cd eureka
docker build -t 172.18.101.172:5000/eureka . && docker push 172.18.101.172:5000/eureka

cd ../gateway
docker build -t 172.18.101.172:5000/gateway . && docker push 172.18.101.172:5000/gateway

