脚本2,批量运行脚本1
#!/bin/bash
echo "-----------start----------"
slist=(
git目录,分支,工作目录,同步目录---使用vue打包
git目录,分支,工作目录,iamge名称,k8s命名空间,k8s项目
)
current_dir=$(cd $(dirname $0); pwd)
echo "path --> $current_dir"
cd $current_dir
for se in "${slist[@]}"
do
sh auto_publish.sh $se
done
echo "-----------end------------"
定时任务
*/20 * * * * sh 脚本.sh