Skip to content

Commit

Permalink
Create sarthi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tushar5526 authored Jan 2, 2024
1 parent 0713187 commit a10c631
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/sarthi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Sarthi Preview Environments
on:
pull_request_target:
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.yaml # override this with the compose file name
sarthi_server_url: ${{ secrets.SARTHI_SERVER_URL }}
sarthi_secret: ${{ secrets.SARTHI_SECRET }} # Secret text generate while setting up the server
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a10c631

Please sign in to comment.