Skip to content

chart: Added ability to use environment variables #115

chart: Added ability to use environment variables

chart: Added ability to use environment variables #115

name: Lint and Test Charts
on:
pull_request:
paths:
- charts/**
- '!charts/**/README.md'
jobs:
lint-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.7.0
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Set up chart-testing
uses: helm/[email protected]
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --config .github/ct.yaml)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
- name: Run chart-testing (lint)
run: ct lint --config .github/ct.yaml
- name: Setup Minikube
uses: medyagh/setup-minikube@master
- name: Build image & Run chart-testing (install)
run: |
export SHELL=/bin/bash
eval $(minikube -p minikube docker-env)
DOCKER_IMAGE_VERSION=ci-test make image
echo -n "verifying images:"
docker images
ct install --config .github/ct.yaml --helm-extra-set-args="--set=image.tag=ci-test --set image.pullPolicy=Never"