4563979a15
- 迁移 000035-000037(权限等级/环境变量/渠道) - 新增 internal/channel 渠道抽象层(webhook/企微/钉钉/飞书) - 全部功能端到端验证通过(25 包单测)
19 lines
549 B
Bash
Executable File
19 lines
549 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# 多架构镜像发布(amd64 + arm64)。用法:
|
|
# ./scripts/publish-images.sh <image-registry>/ai-gateway:0.11.0
|
|
# 前置:已启用 docker buildx(docker buildx create --use)。
|
|
set -euo pipefail
|
|
|
|
TAG="${1:?用法: publish-images.sh <registry>/<repo>:<tag>}"
|
|
cd "$(dirname "$0")/.."
|
|
|
|
echo "==> 构建并推送多架构镜像: ${TAG}"
|
|
docker buildx build \
|
|
--platform linux/amd64,linux/arm64 \
|
|
--build-arg VERSION="${TAG##*:}" \
|
|
-t "${TAG}" \
|
|
--push \
|
|
-f deploy/Dockerfile .
|
|
|
|
echo "==> 完成: ${TAG} (amd64 + arm64)"
|