GitHub Action
sarthi-deploy
v0.0.0-beta
Latest version
Easy to set up Docker Compose based Ephemeral previews!
- This action is meant to be used in parallel with a self-hosted Sarthi service.
- Get the secrets generate from that service and add it to the repository's secret. See creating-secrets-for-a-repository by GitHub.
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
This action is licensed under some specific terms. Check here for more information.