fix: 修复CI/CD镜像源配置和后端CGO支持
Some checks failed
部署前端网站 / 🧪 测试和构建 (push) Has been cancelled
部署前端网站 / 🚀 部署到生产环境 (push) Has been cancelled
部署管理后台 / 🚀 部署到生产环境 (push) Has been cancelled
部署管理后台 / 🔄 回滚部署 (push) Has been cancelled
部署管理后台 / 🔒 安全扫描 (push) Has been cancelled
部署管理后台 / 🧪 测试和构建 (push) Has been cancelled
部署后端服务 / 🚀 构建并部署 (push) Failing after 1m52s
Some checks failed
部署前端网站 / 🧪 测试和构建 (push) Has been cancelled
部署前端网站 / 🚀 部署到生产环境 (push) Has been cancelled
部署管理后台 / 🚀 部署到生产环境 (push) Has been cancelled
部署管理后台 / 🔄 回滚部署 (push) Has been cancelled
部署管理后台 / 🔒 安全扫描 (push) Has been cancelled
部署管理后台 / 🧪 测试和构建 (push) Has been cancelled
部署后端服务 / 🚀 构建并部署 (push) Failing after 1m52s
- 为前端和管理后台CI/CD添加阿里云镜像源替换 - 修复后端Dockerfile的CGO配置以支持SQLite - 将运行时镜像从scratch改为alpine以支持动态链接
This commit is contained in:
@ -99,6 +99,12 @@ jobs:
|
||||
- name: 📊 压缩构建产物
|
||||
working-directory: ./admin
|
||||
run: |
|
||||
# 使用国内镜像源安装压缩工具
|
||||
echo "🔄 使用国内镜像源..."
|
||||
sudo sed -i 's|http://.*.ubuntu.com|https://mirrors.aliyun.com|g' /etc/apt/sources.list
|
||||
sudo apt-get update -o Acquire::Retries=3 -o Acquire::http::Timeout=30
|
||||
sudo apt-get install -y tar gzip
|
||||
|
||||
tar -czf admin-dist.tar.gz -C dist .
|
||||
echo "压缩完成: $(ls -lh admin-dist.tar.gz)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user