Merge "Update lint job to use helm v3"

This commit is contained in:
Zuul 2021-10-13 16:09:20 +00:00 committed by Gerrit Code Review
commit f4a74884e5

View File

@ -14,21 +14,24 @@
# limitations under the License.
- hosts: all
roles:
- name: build-helm-packages
work_dir: "{{ zuul.projects['opendev.org/openstack/openstack-helm-infra'].src_dir }}"
- name: build-helm-packages
work_dir: "{{ zuul.projects['opendev.org/openstack/openstack-helm'].src_dir }}"
when: "zuul.project.name == 'openstack/openstack-helm'"
- ensure-chart-testing
- name: chart-testing
chart_testing_options: "--chart-dirs=. --validate-maintainers=false"
zuul_work_dir: "{{ work_dir }}"
vars:
work_dir: "{{ zuul.project.src_dir }}/{{ zuul_osh_infra_relative_path | default('') }}"
- hosts: all[0]
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 }}"
target: all
- name: Prevent trailing whitespaces
shell: find . \! \( -path "*/\.*" -o -path "*/doc/build/*" -o -name "*.tgz" -o -name "*.png" \) -type f -exec egrep -l " +$" {} \;
register: _found_whitespaces