diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 96df330..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,101 +0,0 @@ -# name: Deploy to Server - -# on: -# push: -# branches: -# - main - -# jobs: -# build-and-deploy: -# runs-on: ubuntu-latest -# steps: -# - name: Checkout code -# uses: actions/checkout@v4 - -# - name: Build Docker Images -# run: | -# echo "Building Backend Image..." -# docker build -t market-backend:latest ./backend - -# echo "Building Frontend Image..." -# # 注意:这里我们传入了服务器的 IP 地址作为 API URL -# # 如果你的后端端口不是 8000,请修改这里 -# docker build -t market-frontend:latest \ -# --build-arg VITE_API_URL=http://47.101.218.42:8000/api \ -# ./frontend - -# - name: Save Docker Images -# run: | -# echo "Saving images to tarball..." -# docker save market-backend:latest market-frontend:latest | gzip > market-images.tar.gz - -# - name: Generate Production Compose File -# run: | -# # 生成生产环境专用的 docker-compose.prod.yml -# # 1. 使用构建好的镜像 (image) 替代构建指令 (build) -# # 2. 移除代码挂载 (volumes),确保使用镜像内的代码 -# cat > docker-compose.prod.yml <