กลับไปยังเอกสาร


การผสาน GitHub
CI/CD ด้วย GitHub Actions
ใช้ GitHub Actions เพื่อ build และ deploy แอปพลิเคชันของคุณโดยอัตโนมัติ
Advanced10 min readUpdated 2024-02-01
ทำไมต้องใช้ GitHub Actions?
ข้อดีของการ build ด้วย GitHub Actions:
- CI minutes ฟรี: GitHub จัดสรร build minutes ฟรี
- Build เร็วขึ้น: โครงสร้างพื้นฐานของ GitHub มักเร็วขึ้น
- รักษา server ให้ว่าง: resources VPS ของคุณอยู่สำหรับการรันแอป
- Workflow ที่คุ้นเคย: ไวยากรณ์ GitHub Actions มาตรฐาน
ตั้งค่า GitHub Actions
- Deploy แอปจาก GitHub
- ในการตั้งค่า build เลือก "GitHub Actions"
- Server Compass สร้างไฟล์ workflow
- Commit workflow ไปยัง repo ของคุณ
- การ push ในอนาคตจะทริกเกอร์ build อัตโนมัติ
การกำหนดค่า workflow
Workflow ที่สร้างขึ้น:
- Build Docker image ของคุณ
- Push ไปยัง GitHub Container Registry
- แจ้งเตือน Server Compass ให้ deploy
- ใช้งานได้กับ branch ใดๆ ที่คุณกำหนดค่า
ติดตาม builds
ดูสถานะ build ใน Server Compass:
- เปิดแท็บ CI/CD ของแอปของคุณ
- ดู workflow runs ล่าสุด
- ดู build logs แบบ real-time
- ทริกเกอร์ workflows ใหม่ด้วยตนเอง
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