-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (57 loc) · 1.59 KB
/
trigger-loadtest.yml
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
58
59
---
name: Trigger Loadtest
on:
workflow_dispatch:
inputs:
branch_code:
description: "Branch to take test code and helm/cron setup from"
required: false
type: string
default: SPSH-1371
branch_img:
description: "Branch to take Dockerfile/img from"
required: false
type: string
default: main
pattern:
description: "sets PATTERN env var used as k6 input"
required: false
type: string
default: "login"
config:
description: "sets CONFIG env var used as k6 input"
required: false
type: string
default: "plateau"
max_vus:
description: "sets the maximum number of virtual users"
required: false
type: string
default: "10"
scenario:
description: "name of test scenario defined in values.yaml"
type: string
required: true
default: current
execute:
description: "execute cronjob scenario after install"
type: boolean
required: true
default: true
jobs:
install_loadtest:
permissions:
packages: write
security-events: write
contents: read
uses: ./.github/workflows/install-and-run-spsh-loadtest.yml
with:
branch_code: ${{ inputs.branch_code }}
branch_img: ${{ inputs.branch_img }}
pattern: ${{ inputs.pattern }}
config: ${{ inputs.config }}
max_vus: ${{ inputs.max_vus }}
scenario: ${{ inputs.scenario }}
execute: ${{ inputs.execute }}
secrets:
KUBECONFIG: ${{ secrets.KUBECONFIG }}