Skip to content

Commit a10c631

Browse files
authored
Create sarthi.yml
1 parent 0713187 commit a10c631

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/sarthi.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Sarthi Preview Environments
2+
on:
3+
pull_request_target:
4+
types: [ opened, closed, reopened, synchronize ]
5+
push:
6+
# delete preview environments when branches are deleted
7+
delete:
8+
9+
jobs:
10+
sarthi_job:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Sarthi
17+
uses: tushar5526/sarthi-deploy@main
18+
with:
19+
compose_file: docker-compose.yaml # override this with the compose file name
20+
sarthi_server_url: ${{ secrets.SARTHI_SERVER_URL }}
21+
sarthi_secret: ${{ secrets.SARTHI_SECRET }} # Secret text generate while setting up the server
22+
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)