Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 83319b3

Browse files
authored
Merge pull request #46 from FOSS-Community/sarthi-preview-env-setup
Create sarthi.yml
2 parents 0713187 + 7d57dcf commit 83319b3

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/sarthi.yml

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

0 commit comments

Comments
 (0)