Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
anchor

GitHub Action

Kamal Deploy

v0.1.2

Kamal Deploy

anchor

Kamal Deploy

GitHub Action to build and deploy Docker image with Kamal

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Kamal Deploy

uses: igor-alexandrov/[email protected]

Learn more about this action in igor-alexandrov/kamal-deploy

Choose a version

Kamal Deploy Action

This GitHub Action deploys using Kamal. Supports Kamal v2.0 and later.

Inputs

  • environment: The environment to deploy to (e.g. staging, production).
  • kamal-registry-username: Registry username (Digital Ocean access token).
  • kamal-registry-password: Registry password (Digital Ocean access token).

Usage

steps:
  - name: Kamal Deploy
    uses: igor-alexandrov/kamal-deploy@v1
    with:
      environment: 'staging'
      kamal-registry-username: ${{ secrets.KAMAL_REGISTRY_USERNAME }}
      kamal-registry-password: ${{ secrets.KAMAL_REGISTRY_PASSWORD }}
    # Optional
    env:
      DATABASE_URL: ${{ secrets.DATABASE_URL }}
      REDIS_URL: ${{ secrets.REDIS_URL }}
      RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}