Reset bridge service #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Reset bridge service | |
on: | |
workflow_dispatch: | |
jobs: | |
reset-bridge-service: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up kubectl | |
uses: azure/setup-kubectl@v1 | |
with: | |
version: 'v1.29.0' | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y jq | |
- uses: actions-hub/kubectl@master | |
env: | |
KUBE_CONFIG: ${{ secrets.KUBECONFIG }} | |
with: | |
args: scale --replicas=0 statefulset/bridge-service -n heimdall | |
- uses: actions-hub/kubectl@master | |
env: | |
KUBE_CONFIG: ${{ secrets.KUBECONFIG }} | |
with: | |
args: scale --replicas=0 statefulset/bridge-service-db -n heimdall | |
- uses: actions-hub/kubectl@master | |
env: | |
KUBE_CONFIG: ${{ secrets.KUBECONFIG }} | |
with: | |
args: delete pvc/bridge-service-db-data-bridge-service-db-0 --namespace=heimdall | |
- uses: actions/[email protected] | |
with: | |
python-version: 3.10.13 | |
- run: | | |
python -m pip install -r requirements.txt | |
flit install | |
name: install dependencies | |
working-directory: ./scripts | |
- name: Update 'bridgeService.rdb.defaultStartBlockIndex' | |
run: | | |
python cli.py update-bridge-service 9c-internal heimdall | |
working-directory: ./scripts | |
env: | |
GITHUB_TOKEN: ${{ secrets.P_GITHUB_TOKEN }} |