Commit 787b7a68 by tingweiwang

fix

1 parent 087ac36c
Showing with 3 additions and 3 deletions
...@@ -5,7 +5,7 @@ fu_host=192.168.1.36 ...@@ -5,7 +5,7 @@ fu_host=192.168.1.36
test_host=192.168.1.51 test_host=192.168.1.51
project_workspace=/tmp project_workspace=/tmp
IMAGE=nginx:latest IMAGE=nginx:latest
DOCKER_REGISTRY=hub.kce.ksyun.com/kpl_k8s DOCKER_REGISTRY="hub.kce.ksyun.com/kpl_k8s"
######################################### #########################################
sed_yaml() { sed_yaml() {
echo "修改image名字" echo "修改image名字"
...@@ -15,8 +15,8 @@ sed -i s@IMAGE@$IMAGE@g `find -type f -name "*.yaml"` ...@@ -15,8 +15,8 @@ sed -i s@IMAGE@$IMAGE@g `find -type f -name "*.yaml"`
################################ ################################
recover_yaml() { recover_yaml() {
echo "恢复yaml模板" echo "恢复yaml模板"
sed -i s@$DOCKER_REGISTRY@hub.kce.ksyun.com@g `find -type f -name "*.yaml"` sed -i s@$DOCKER_REGISTRY@DOCKER_REGISTR@g `find -type f -name "*.yaml"`
sed -i s@$IMAGE@nginx:latestg `find -type f -name "*.yaml"` sed -i s@$IMAGE@IMAGE `find -type f -name "*.yaml"`
} }
################################### ###################################
delt_all() { delt_all() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!