|
@@ -1,6 +1,9 @@
|
|
|
|
+cd `dirname $0`
|
|
|
|
+cd ../
|
|
|
|
+
|
|
version=$(date +%s)
|
|
version=$(date +%s)
|
|
docker build -t registry.cn-chengdu.aliyuncs.com/cxzx-spider/taide-binlog:$version .
|
|
docker build -t registry.cn-chengdu.aliyuncs.com/cxzx-spider/taide-binlog:$version .
|
|
docker push registry.cn-chengdu.aliyuncs.com/cxzx-spider/taide-binlog:$version
|
|
docker push registry.cn-chengdu.aliyuncs.com/cxzx-spider/taide-binlog:$version
|
|
-sed -i "s!{ { image } }!registry\.cn-chengdu\.aliyuncs\.com/cxzx-spider/taide-binlog:$version!g" *.yml
|
|
|
|
|
|
+sed -i "s!{ { image } }!registry\.cn-chengdu\.aliyuncs\.com/cxzx-spider/taide-binlog:$version!g" deploy/taide-binlog.yml
|
|
|
|
|
|
-kubectl apply -f taide-binlog.yml
|
|
|
|
|
|
+kubectl apply -f deploy/taide-binlog.yml
|