Files
smartmate/deploy/project-rollback.sh
2026-05-09 14:29:35 +08:00

10 lines
389 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
set -euo pipefail
# 1. 回滚本质上就是把目标旧 release 再部署一遍。
# 2. 这里不单独复制逻辑,避免发布和回滚两套脚本漂移。
# 3. 薄封装脚本传入哪个 release_id这里就把哪个 release 当成目标版本重放。
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
exec "${script_dir}/project-release.sh" "$@"