孙永军 1 year ago
parent
commit
6311afee21
1 changed files with 9 additions and 0 deletions
  1. 9 0
      deploy/sxtt-sync.sh

+ 9 - 0
deploy/sxtt-sync.sh

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