Commit 1705c847 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

use own image

parent cc8a613d
Loading
Loading
Loading
Loading
+14 −5
Original line number Diff line number Diff line
---
.kube-context:
  image: registry.gitlab.com/gitlab-org/cluster-integration/cluster-applications:latest
  before_script:
    - gl-use-kube-context
    - chmod 400 $KUBECONFIG  # Removes security warnings. https://gitlab.com/gitlab-org/project-templates/cluster-management/-/merge_requests/51#note_936576634

k8s:sonobuoy:
  image: sonobuoy/sonobuoy:latest
  extends: .kube-context
  stage: test
  before_script:
    - |
      wget -qO- $(wget -qO- https://api.github.com/repos/vmware-tanzu/sonobuoy/releases/latest | grep "browser_download_url.*linux_amd64" | cut -d : -f 2,3 | tr -d \") | tar xzf - -C /usr/local/bin
  script:
    - /sonobuoy run --wait
    - RESULTS_FILE=$(/sonobuoy retrieve)
    - /sonobuoy results ${RESULTS_FILE}
    - sonobuoy run --wait
    - RESULTS_FILE=$(sonobuoy retrieve)
    - sonobuoy results ${RESULTS_FILE}
  after_script:
    - /sonobuoy delete --wait
    - sonobuoy delete --wait
  environment:
    name: production
    action: verify