Commit ba611594 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

feat: sonobuoy diagnostics job

parent 94841948
Loading
Loading
Loading
Loading

k8s/sonobuoy.yml

0 → 100644
+20 −0
Original line number Diff line number Diff line
---
k8s:sonobuoy:
  image: sonobuoy/sonobuoy:latest
  stage: test
  script:
    - if [ -n "${KUBE_CONTEXT}" ]; then kubectl config use-context "${KUBE_CONTEXT}"; fi
    - sonobuoy run --wait
    - RESULTS_FILE=$(sonobuoy retrieve)
    - sonobuoy results ${RESULTS_FILE}
  after_script:
    - sonobuoy delete --wait
  environment:
    name: production
    action: verify
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
      when: manual
  artifacts:
    paths:
      - "*sonobuoy*.tar.gz"