返回文档


GitHub 集成
使用 GitHub Actions 进行 CI/CD
使用 GitHub Actions 自动构建和部署应用程序。
Advanced10 min readUpdated 2024-02-01
为什么使用 GitHub Actions?
GitHub Actions 构建的优势:
- 免费 CI 分钟数:GitHub 提供免费构建分钟数
- 更快的构建:GitHub 的基础设施通常更快
- 保持服务器空闲:VPS 资源保留用于运行应用
- 熟悉的工作流程:标准 GitHub Actions 语法
设置 GitHub Actions
- 从 GitHub 部署应用
- 在构建设置中,选择"GitHub Actions"
- Server Compass 生成工作流文件
- 将工作流提交到仓库
- 未来的推送触发自动构建
工作流配置
生成的工作流:
- 构建 Docker 镜像
- 推送到 GitHub Container Registry
- 通知 Server Compass 部署
- 适用于您配置的任何分支
监控构建
在 Server Compass 中查看构建状态:
- 打开应用的 CI/CD 标签页
- 查看最近的工作流运行
- 实时查看构建日志
- 手动重新触发工作流
Screenshots



Video Tutorials
Related Features
GitHub Actions Integration
Build and deploy using GitHub Actions free CI minutes. Your server resources stay free for running apps.
Auto-Deploy on Push
Enable automatic deployments triggered by code pushes. Configure polling intervals and branch filters.
Workflow Management
Sync, view, and manage GitHub Actions workflows. See run history, job status, and trigger workflows manually.
Ready to try Server Compass?
Download the app and deploy your first application in under 5 minutes.
Download Server Compass