From a10c631854e46dad86d4215750bfd2f97da09f44 Mon Sep 17 00:00:00 2001 From: Tushar <30565750+tushar5526@users.noreply.github.com> Date: Wed, 3 Jan 2024 02:29:57 +0530 Subject: [PATCH] Create sarthi.yml --- .github/workflows/sarthi.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/sarthi.yml diff --git a/.github/workflows/sarthi.yml b/.github/workflows/sarthi.yml new file mode 100644 index 0000000..6a8f746 --- /dev/null +++ b/.github/workflows/sarthi.yml @@ -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 }}