feat(auth): 支持企业微信重置密码
This commit is contained in:
1 parent
9bc4d1dd18
commit
6baeffba64
55 files changed
+2852
-546
No files matched your search
@@ -1,6 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# scripts/deploy_compose.sh
|
||||
# 用途:按环境增量构建/拉起 hxops 前后端容器,并为镜像打版本 tag 供回滚使用。
|
||||
# 依赖:docker compose、docker-compose.yml、.env.<env>、healthcheck.sh。
|
||||
# 逻辑:Jenkins Deploy 阶段 SSH 调用;回滚时以预构建镜像模式传入 FRONTEND_IMAGE/BACKEND_IMAGE。
|
||||
set -euo pipefail
|
||||
|
||||
# Git 默认短 hash 长度(与 Sourcetree/GitHub 展示一致)
|
||||
SHORT_SHA_LEN=7
|
||||
|
||||
# 参数说明:
|
||||
# 1: 环境名(dev/test/prod)
|
||||
# 2: 前端镜像名(可空;非空表示使用预构建镜像)
|
||||
@@ -84,6 +92,7 @@ check_backend_build_inputs() {
|
||||
fi
|
||||
}
|
||||
|
||||
# 校验预构建镜像是否存在(精确匹配 tag,找不到则失败)。
|
||||
verify_prebuilt_image() {
|
||||
local image="$1"
|
||||
if [[ -z "${image}" ]]; then
|
||||
@@ -97,6 +106,7 @@ verify_prebuilt_image() {
|
||||
fi
|
||||
}
|
||||
|
||||
# 为本次构建的 :local 镜像打版本 tag,供 Jenkins 回滚时按 Git 短 hash 选用。
|
||||
tag_built_images() {
|
||||
local commit_sha="${GIT_COMMIT:-}"
|
||||
if [[ -z "${commit_sha}" ]]; then
|
||||
@@ -104,7 +114,7 @@ tag_built_images() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
local short_sha="${commit_sha:0:8}"
|
||||
local short_sha="${commit_sha:0:${SHORT_SHA_LEN}}"
|
||||
local version_tag="${ENV_NAME}-${short_sha}"
|
||||
|
||||
# 对当前 :local 镜像打版本 tag(含增量部署),便于回滚时前后端 tag 成对存在
|
||||
|
||||
Reference in new issue
Block a user