Skip to content
Snippets Groups Projects
Commit 2d8ff763 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

add first test

parent 01e1d194
No related branches found
No related tags found
1 merge request!24Add tests
Pipeline #132713 failed
generate:
stage: test
needs: []
image: harbor.pasteur.fr/kube-system/helm-kubectl:3.4.0
script:
- mkdir -p out-templates
- helm dependency update ./test-chart/
- helm template toto ./test-chart/ > out-templates/template.yaml
artifacts:
paths:
- templates
expire_in: 1 week
test:
stage: test
needs: ["generate"]
image: docker:24
script:
- docker run -v ./out-templates:/dir stackrox/kube-linter lint /dir
upload: upload:
only:
- helm
stage: build stage: build
needs: [] needs: ["test"]
image: harbor.pasteur.fr/kube-system/helm-kubectl:3.4.0 image: harbor.pasteur.fr/kube-system/helm-kubectl:3.4.0
script: script:
- CHART_VERSION=$(helm show chart shiny-k8s-toolkit-helm | grep version | cut -d' ' -f2) - CHART_VERSION=$(helm show chart shiny-k8s-toolkit-helm | grep version | cut -d' ' -f2)
...@@ -20,6 +44,8 @@ upload: ...@@ -20,6 +44,8 @@ upload:
trigger_job: trigger_job:
only:
- helm
needs: ["upload"] needs: ["upload"]
trigger: trigger:
project: hub/shiny-k8s-example project: hub/shiny-k8s-example
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment