From 3c0078310b3d778208c5eb6087928d98fc7c25ee Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Fri, 27 Nov 2020 20:00:31 +0500 Subject: [PATCH] Use ubuntu 20.04 --- .github/workflows/deploy_charts.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy_charts.yml b/.github/workflows/deploy_charts.yml index f29ef99bdee..1055c699e36 100644 --- a/.github/workflows/deploy_charts.yml +++ b/.github/workflows/deploy_charts.yml @@ -3,25 +3,28 @@ name: Charts-CI on: [push] jobs: - build-deb: - runs-on: ubuntu-latest + 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@v1 + 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 - sudo apt install -y python3-all-dev python3-pip python3-setuptools + 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 - cd catalog_validation - git checkout k3s-ci - sudo pip3 install --disable-pip-version-check --exists-action w -r requirements.txt - sudo pip3 install -U . + 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"