re-deploy proxy

This commit is contained in:
Ishaan Jaff 2024-05-25 17:30:37 -07:00
parent 284f2dc804
commit fe8b7f6b4a
2 changed files with 19 additions and 0 deletions

View file

@ -22,6 +22,14 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install PyGithub
- name: re-deploy proxy
run: |
echo "Current working directory: $PWD"
ls
python ".github/workflows/redeploy_proxy.py"
env:
LOAD_TEST_REDEPLOY_URL1: ${{ secrets.LOAD_TEST_REDEPLOY_URL1 }}
working-directory: ${{ github.workspace }}
- name: Run Load Test
id: locust_run
uses: BerriAI/locust-github-action@master

11
.github/workflows/redeploy_proxy.py vendored Normal file
View file

@ -0,0 +1,11 @@
"""
redeploy_proxy.py
"""
import os
import requests
# send a get request to this endpoint
deploy_hook1 = os.getenv("LOAD_TEST_REDEPLOY_URL1")
response = requests.get(deploy_hook1, timeout=20)