Merge pull request #5 from truenas/deploy-k8s-chart-test

Add CI for validating charts by deploying in k8s
This commit is contained in:
Waqar Ahmed 2020-11-30 18:45:39 +05:00 committed by GitHub
commit 1d1ce4cc80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

30
.github/workflows/deploy_charts.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: Charts-CI
on: [push]
jobs:
deploy-charts:
runs-on: ubuntu-20.04
steps:
- name: Install Helm
run: /bin/bash -c "curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash"
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fetch base branch history
run: git fetch origin master:master
- name: Setup catalog validation
run: |
sudo apt update > /dev/null 2>&1
sudo apt install -y python3-all-dev python3-pip python3-setuptools > /dev/null 2>&1
git clone https://github.com/truenas/catalog_validation
sudo pip3 install --disable-pip-version-check --exists-action w -r catalog_validation/requirements.txt > /dev/null 2>&1
sudo pip3 install -U catalog_validation/.
- name: Validate changed charts
run: /bin/bash -c "PWD=${pwd}; sudo /usr/local/bin/charts_validate deploy --path $PWD"