File tree Expand file tree Collapse file tree 1 file changed +80
-0
lines changed
Expand file tree Collapse file tree 1 file changed +80
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Flow - Bill Payment K8s Issue
2+
3+ run-name : Bill Payment K8s Issue demo scenario kickoff
4+
5+ on :
6+ workflow_dispatch :
7+ # inputs:
8+ # duration:
9+ # description: "Scenario duration in minutes"
10+ # type: choice
11+ # required: true
12+ # default: "30"
13+ # options:
14+ # - "5"
15+ # - "10"
16+ # - "15"
17+ # - "30"
18+
19+ schedule :
20+ # Run every 4 hours
21+ - cron : " 0 */4 * * *"
22+
23+
24+
25+ jobs :
26+
27+ get-metadata :
28+ name : Get Metadata
29+ runs-on : ubuntu-latest
30+ outputs :
31+ latest_tag : ${{ steps.get_latest_tag.outputs.tag }}
32+ steps :
33+ - name : Checkout Repo
34+ uses : actions/checkout@v4
35+ with :
36+ fetch-depth : 0
37+
38+ k8s-bill-pay-flow :
39+ runs-on : ubuntu-latest
40+ timeout-minutes : 40
41+ strategy :
42+ fail-fast : false
43+ matrix :
44+ # environment: [sandbox, staging, prod]
45+ environment : [events]
46+
47+ environment : ${{ matrix.environment }}
48+
49+ # --------------- runner setup ---------------
50+ steps :
51+ - name : Checkout repo
52+ uses : actions/checkout@v4
53+
54+ - uses : actions/setup-python@v4
55+ with :
56+ python-version : ' 3.10'
57+
58+ - name : pip installs
59+ run : |
60+ pip install locust
61+
62+ # --------------- demo flow ---------------
63+
64+ - name : Send bad deployment marker
65+ run : |
66+ cd demo_flows/k8s_bill_pay/relibank_marker.py && python send_marker_bill_pay.py badCommit ${{ secrets.NR_USER_API_KEY }} ${{ vars.NR_ACCOUNT_ID }}
67+
68+ - name : Loadgen
69+ continue-on-error : true
70+ run : |
71+ cd demo_flows/k8s_bill_pay/ && python trigger_chaos.py ${{ vars.BASE_URL }}
72+ # - name: Run GraphQL Mutation
73+ # run: |
74+ # cd applications/microservices-demo/demo_flows/change_tracking && python test_synthetic.py ${{ secrets.NR_USER_API_KEY }} ${{ vars.NR_ACCOUNT_ID }}
75+
76+ - name : Send good deployment marker
77+ if : always()
78+ run : |
79+ cd demo_flows/k8s_bill_pay/relibank_marker.py && python send_marker_bill_pay.py goodCommit ${{ secrets.NR_USER_API_KEY }} ${{ vars.NR_ACCOUNT_ID }}
80+
You can’t perform that action at this time.
0 commit comments