Lint job: Install Helm before chart-testing

Ensure that Helm is installed before running ct.

Change-Id: Id8a12a0d08ad930d6052af21071cba87c127dadd
This commit is contained in:
Phil Sphicas 2021-10-25 18:28:46 -07:00
parent 6ef7e614c1
commit a934f83187

View File

@ -15,7 +15,10 @@
- hosts: all - hosts: all
roles: 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 - name: chart-testing
chart_testing_options: "--chart-dirs=. --validate-maintainers=false" chart_testing_options: "--chart-dirs=. --validate-maintainers=false"
zuul_work_dir: "{{ work_dir }}" zuul_work_dir: "{{ work_dir }}"
@ -23,18 +26,6 @@
work_dir: "{{ zuul.project.src_dir }}/{{ zuul_osh_infra_relative_path | default('') }}" work_dir: "{{ zuul.project.src_dir }}/{{ zuul_osh_infra_relative_path | default('') }}"
tasks: 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 - name: make all
make: make:
chdir: "{{ zuul.project.src_dir }}" chdir: "{{ zuul.project.src_dir }}"