Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create sarthi.yml #46

Merged
merged 4 commits into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/sarthi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Sarthi Preview Environments
on:
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.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
Loading