Kamal in GitHub Actions

Episode #425 by Teacher's Avatar David Kimura

Summary

Kamal is a great utility for deploying your application to a server. It can handle many different kinds of use cases. However, there is some disconnect on how to use it within a CI/CD pipeline. In this episode, we'll look at deploying a Rails 7.1 application with SQLite to a virtual machine using Kamal within GitHub Actions.
rails 7.1 deploy deployment ci/cd 31:01

Chapters

  • Introduction (0:00)
  • Installing and configuring Kamal (3:43)
  • Setting up the VM (9:11)
  • Setting up GitHub Actions (15:56)
  • Configuring the config/deploy.yml.prod (22:06)
  • Setting up GItHub and Secrets (23:03)
  • Deploying to GitHub (24:24)
  • Making some code changes and deploying (26:56)
  • Making another app change and deploying (29:12)
  • Final thoughts (29:57)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
$ 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams