Kembali ke dokumentasi
Integrasi GitHub

CI/CD dengan GitHub Actions

Gunakan GitHub Actions untuk build dan deploy aplikasi secara otomatis.

Advanced10 min readUpdated 2024-02-01

Mengapa menggunakan GitHub Actions?

Manfaat build GitHub Actions:

  • Menit CI gratis: GitHub menyediakan menit build gratis
  • Build lebih cepat: Infrastruktur GitHub sering lebih cepat
  • Jaga server tetap bebas: Resource VPS tetap untuk menjalankan aplikasi
  • Workflow familiar: Sintaks GitHub Actions standar

Setup GitHub Actions

  1. Deploy aplikasi dari GitHub
  2. Di pengaturan build, pilih "GitHub Actions"
  3. Server Compass menghasilkan file workflow
  4. Commit workflow ke repo
  5. Push di masa depan memicu build otomatis

Konfigurasi workflow

Workflow yang di-generate:

  • Membangun Docker image
  • Push ke GitHub Container Registry
  • Memberitahu Server Compass untuk deploy
  • Bekerja dengan branch apa pun yang dikonfigurasi

Monitoring build

Lihat status build di Server Compass:

  1. Buka tab CI/CD aplikasi
  2. Lihat workflow run terbaru
  3. Lihat build logs secara real-time
  4. Trigger ulang workflow secara manual

Screenshots

CI/CD dengan GitHub Actions - Screenshot 1
CI/CD dengan GitHub Actions - Screenshot 2
CI/CD dengan GitHub Actions - Screenshot 3

Video Tutorials

Related Features

Ready to try Server Compass?

Download the app and deploy your first application in under 5 minutes.

Download Server Compass