Trigger Loadtest #120
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: Trigger Loadtest | |
on: | |
workflow_dispatch: | |
inputs: | |
branch_code: | |
description: "Branch to take test code and helm/cron setup from" | |
required: false | |
type: string | |
default: main | |
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: "debug" | |
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: dev-scenario | |
execute: | |
description: "execute cronjob scenario after install" | |
type: boolean | |
required: true | |
default: false | |
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 }} |