2020-11-27 14:19:06 +00:00
|
|
|
name: Charts-CI
|
|
|
|
|
2020-11-30 13:51:27 +00:00
|
|
|
on: [pull_request]
|
2020-11-27 14:19:06 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-11-27 15:00:31 +00:00
|
|
|
deploy-charts:
|
|
|
|
runs-on: ubuntu-20.04
|
2020-11-27 14:19:06 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Install Helm
|
|
|
|
run: /bin/bash -c "curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash"
|
|
|
|
|
|
|
|
- name: Checkout
|
2020-11-27 15:00:31 +00:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Fetch base branch history
|
|
|
|
run: git fetch origin master:master
|
2020-11-27 14:19:06 +00:00
|
|
|
|
|
|
|
- name: Setup catalog validation
|
|
|
|
run: |
|
2020-11-27 15:00:31 +00:00
|
|
|
sudo apt update > /dev/null 2>&1
|
|
|
|
sudo apt install -y python3-all-dev python3-pip python3-setuptools > /dev/null 2>&1
|
2020-11-27 14:19:06 +00:00
|
|
|
git clone https://github.com/truenas/catalog_validation
|
2020-11-27 15:00:31 +00:00
|
|
|
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/.
|
2020-11-27 14:19:06 +00:00
|
|
|
|
|
|
|
- name: Validate changed charts
|
|
|
|
run: /bin/bash -c "PWD=${pwd}; sudo /usr/local/bin/charts_validate deploy --path $PWD"
|