From 4c8219477db1e93e5540c9af4889f2633a9ca9e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Thu, 11 Nov 2021 17:02:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0admin=5Fcenter=E7=AE=A1?= =?UTF-8?q?=E7=90=86JOB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish_admin.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 publish_admin.sh diff --git a/publish_admin.sh b/publish_admin.sh new file mode 100644 index 0000000..21b6f62 --- /dev/null +++ b/publish_admin.sh @@ -0,0 +1,20 @@ +#!/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 + +echo "${APP_ID}服务启动成功"