Skip to content
check

GitHub Action

sarthi-deploy

v0.0.0-beta Latest version

sarthi-deploy

check

sarthi-deploy

Easy to setup Docker based Ephemeral previews

Installation

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

              

- name: sarthi-deploy

uses: tushar5526/sarthi-deploy@v0.0.0-beta

Learn more about this action in tushar5526/sarthi-deploy

Choose a version

Sarthi Deploy action-badge cookiecutter-pyaction

Easy to set up Docker Compose based Ephemeral previews!

Pre-requisites 🛠️

  1. This action is meant to be used in parallel with a self-hosted Sarthi service.
  2. Get the secrets generate from that service and add it to the repository's secret. See creating-secrets-for-a-repository by GitHub.

Usage 🔄

name: Sarthi Preview Environments
on:
  # pull_request_target to support PRs from forks
  pull_request_target:
    types: [ opened, closed, reopened, synchronize ]
  pull_request:
    types: [ opened, closed, reopened, synchronize ]
  push:
  # delete preview environments when branches are deleted
  delete:

jobs:
  sarthi_job:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repository
        uses: actions/checkout@v2

      - name: Set up Sarthi
        uses: tushar5526/sarthi-deploy@main
        with:
          compose_file: docker-compose.yml # override this with the compose file location in your project
          sarthi_server_url: ${{ secrets.SARTHI_SERVER_URL }} # Sarthi API Backend URL prompted after running the installation script
          sarthi_secret: ${{ secrets.SARTHI_SECRET }} # Secret text generated while setting up the server

License 📄

This action is licensed under some specific terms. Check here for more information.