添加docker打包相关脚本

This commit is contained in:
2026-04-18 22:56:56 +08:00
parent e8dc59f957
commit df399f3cb8
6 changed files with 178 additions and 0 deletions

19
docker-push.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
set -e
# 进入项目目录
cd "$(dirname "$0")"
REGISTRY="10.153.151.42:9999"
NAMESPACE="one-feel"
IMAGE_NAME="aigc-frontend"
VERSION=$(uuidgen | tr '[:upper:]' '[:lower:]')
FULL_IMAGE="${REGISTRY}/${NAMESPACE}/${IMAGE_NAME}:${VERSION}"
echo "Building ${FULL_IMAGE} ..."
docker build -t "${FULL_IMAGE}" .
echo "Pushing ${FULL_IMAGE} ..."
docker push "${FULL_IMAGE}"
echo "Done: ${FULL_IMAGE}"