-
Notifications
You must be signed in to change notification settings - Fork 13
57 lines (46 loc) · 1.41 KB
/
reset-bridge-service.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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 }}