forked from greenbone/openvas-scanner
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (31 loc) · 1006 Bytes
/
helm-build-chart.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
name: helm-charts
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
openvasd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Start a local k8s cluster
uses: jupyterhub/action-k3s-helm@v3
with:
k3s-channel: latest
metrics-enabled: false
- name: deploy openvasd
run: |
helm uninstall openvasd || true
helm install openvasd charts/openvasd/ --values charts/openvasd/values.yaml
kubectl rollout status --watch --timeout 600s deployment/openvasd
helm test openvasd
- uses: greenbone/actions/helm-build-push@v2
if: github.event_name == 'workflow_dispatch'
with:
chart-name: openvasd
registry: ${{ vars.IMAGE_REGISTRY }}
registry-subpath: helm-charts/
registry-user: ${{ secrets.GREENBONE_BOT }}
registry-token: ${{ secrets.GREENBONE_BOT_PACKAGES_WRITE_TOKEN }}