manager-job/publish_admin.sh

21 lines
474 B
Bash
Raw Permalink Normal View History

2021-11-11 17:02:17 +08:00
#!/usr/bin/env bash
if [ "${PROJECT_PATH}" == "" ]; then
echo "PROJECT_PATH IS NOT FOUND"
# shellcheck disable=SC2242
exit -1
fi
if [ "${APP_ID}" == "" ]; then
echo "APP_ID IS NOT FOUND"
# shellcheck disable=SC2242
exit -1
fi
# 切换到项目目录
# shellcheck disable=SC2164
# shellcheck disable=SC2009
cd "${PROJECT_PATH}" && rm -rf "${APP_ID}" && git clone www@git.zhangdeman.cn:zhangdeman/"${APP_ID}".git
2021-11-11 17:54:40 +08:00
echo "${APP_ID}服务发布成功"