Merge "Lint job: Install Helm before chart-testing"

This commit is contained in:
Zuul 2021-10-26 15:42:27 +00:00 committed by Gerrit Code Review
commit 14b8597558
1 changed files with 4 additions and 13 deletions

View File

@ -15,7 +15,10 @@
- hosts: all
roles:
- ensure-chart-testing
- name: ensure-helm
helm_version: "3.6.3"
- name: ensure-chart-testing
chart_testing_version: "3.4.0"
- name: chart-testing
chart_testing_options: "--chart-dirs=. --validate-maintainers=false"
zuul_work_dir: "{{ work_dir }}"
@ -23,18 +26,6 @@
work_dir: "{{ zuul.project.src_dir }}/{{ zuul_osh_infra_relative_path | default('') }}"
tasks:
- name: install helm3
become_user: root
shell: |
TMP_DIR=$(mktemp -d)
curl -sSL https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz | tar -zxv --strip-components=1 -C ${TMP_DIR}
sudo mv ${TMP_DIR}/helm /usr/bin/helm
rm -rf ${TMP_DIR}
environment:
HELM_VERSION: "v3.6.3"
args:
executable: /bin/bash
- name: make all
make:
chdir: "{{ zuul.project.src_dir }}"