-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.48 KB
/
install-and-run-spsh-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
---
name: Install and Run SPSH loadtest Action
on:
workflow_dispatch:
workflow_call:
inputs:
release_tag:
type: string
required: true
secrets:
KUBECONFIG:
required: true
permissions:
contents: read
concurrency:
group: schulportal-load-tests-rollout-run
cancel-in-progress: true
jobs:
rollout:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
with:
repository: 'dBildungsplattform/schulportal-load-tests'
# change this ref to a branch to test changes
# ref: "${{ inputs.release_tag }}"
ref: "DBP-1012-setup-loadtest-env"
- name: Install kubectl and Helm
uses: azure/setup-kubectl@3e0aec4d80787158d308d7b364cb1b702e7feb7f #v4.0.0
- name: Set kubeconfig
run: |
mkdir /home/runner/.kube/
echo "${{ secrets.KUBECONFIG }}" > /home/runner/.kube/config
chmod 600 /home/runner/.kube/config
- name: Helm add repo dbilungsplattform
run: |
helm repo add dbildungsplattform https://dbildungsplattform.github.io/helm-charts-registry/
- name: Rollout schulportal-load-tests Helm Chart
run: |
helm upgrade --install \
schulportal-load-tests \
./charts/schulportal-load-tests \
--namespace spsh \
--kubeconfig /home/runner/.kube/config \
--wait