测是dev镜像

This commit is contained in:
iouAkira
2020-12-11 15:34:22 +08:00
parent 247a1d2375
commit 588df2db09
3 changed files with 10 additions and 8 deletions

View File

@@ -37,12 +37,12 @@ function version_gt() {
echo "check docker images update..."
echo "检查docker镜像更新更新..."
if type jq >/dev/null 2>&1; then
updateContext=$(getDockerImageLabel jq .UPDATE_CONTEXT)
export NOTIFY_CONTEXT=$updateContext
version=$(getDockerImageLabel jq .VERSION)
labels=$(getDockerImageLabel)
export NOTIFY_CONTENT=$(echo $labels | jq .UPDATE_CONTENT)
version=$(echo $labels | jq .VERSION)
else
#第一版通知逻辑无法包含在上面判断里面,镜像构建好直接开启通知
export NOTIFY_CONTEXT="更新内容较多重新阅读仓库Readme(),更新镜像并更新配置后使用。"
export NOTIFY_CONTENT="更新内容较多重新阅读仓库Readme(),更新镜像并更新配置后使用。"
cd /scripts/docker
node notify_docker_user.js
fi