Commit 17171947 authored by Samuel Alfageme Sainz's avatar Samuel Alfageme Sainz
Browse files

GitLabCI: test include to simplify the CI config

parent 4df86207
Pipeline #2734941 failed with stages
in 4 minutes and 11 seconds
......@@ -13,14 +13,13 @@ stages:
- test
- deploy
before_script:
- mkdir -p .repo
include:
- local: '.gitlab/templates/install-helm.yaml'
build:
stage: build
image: gitlab-registry.cern.ch/cloud/ciadm
script:
- curl -o helm.tar.gz https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz; mkdir -p helm; tar zxvf helm.tar.gz -C helm; cp helm/linux-amd64/helm /usr/local/bin; rm -rf helm*
- for chart in $(ls -d */Chart.yaml | xargs dirname); do helm dep update ${chart}; helm lint ${chart}; helm package ${chart}; done
except:
- tags
......@@ -46,6 +45,7 @@ test:
- kubectl wait node --all --for condition=ready
script:
- kubectl get pods --all-namespaces
- helm version
after_script:
- kind delete cluster
......@@ -90,8 +90,6 @@ version-check:
deploy:
stage: deploy
image: gitlab-registry.cern.ch/cloud/ciadm
before_script:
- curl -o helm.tar.gz https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz; mkdir -p helm; tar zxvf helm.tar.gz -C helm; cp helm/linux-amd64/helm /usr/local/bin; rm -rf helm*
script:
- helm repo add ${HELM_CHART_REPO} https://registry.cern.ch/chartrepo/${HELM_CHART_REPO}
- helm repo update
......
default:
before_script:
- curl -o helm.tar.gz https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz
- mkdir -p helm
- tar zxvf helm.tar.gz -C helm
- cp helm/linux-amd64/helm /usr/local/bin
- rm -rf helm*
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment