Skip to content

Commit

Permalink
Merge pull request #46 from FOSS-Community/sarthi-preview-env-setup
Browse files Browse the repository at this point in the history
Create sarthi.yml
  • Loading branch information
tushar5526 authored Jan 4, 2024
2 parents 0713187 + 7d57dcf commit 83319b3
Showing 1 changed file with 23 additions and 0 deletions.
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

0 comments on commit 83319b3

Please sign in to comment.