update pipelines

Signed-off-by: Christian Kotzbauer <christian.kotzbauer@gmail.com>
This commit is contained in:
Christian Kotzbauer 2020-11-15 21:32:35 +01:00
parent 9a25aa64de
commit 67de6a6c9e
2 changed files with 36 additions and 20 deletions

View File

@ -7,21 +7,36 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.0.1
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
- name: Run chart-testing (lint) - name: Run chart-testing (lint)
id: lint run: ct lint
uses: helm/chart-testing-action@v2.0.0
with:
command: lint
- name: Create kind cluster - name: Create kind cluster
uses: helm/kind-action@v1.0.0 uses: helm/kind-action@v1.0.0
with: if: steps.list-changed.outputs.changed == 'true'
install_local_path_provisioner: true
if: steps.lint.outputs.changed == 'true'
- name: Run chart-testing (install) - name: Run chart-testing (install)
uses: helm/chart-testing-action@v2.0.0 run: ct install
with:
command: install

View File

@ -10,23 +10,24 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure Git - name: Configure Git
run: | run: |
git config user.name "$GITHUB_ACTOR" git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
# See https://github.com/helm/chart-releaser-action/issues/6
- name: Install Helm - name: Install Helm
run: | uses: azure/setup-helm@v1
curl -sSLo get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get with:
chmod 700 get_helm.sh version: v3.4.0
./get_helm.sh
helm init --client-only
- name: Add dependency chart repos - name: Add dependency chart repos
run: | run: |
helm repo add stable https://kubernetes-charts.storage.googleapis.com/ helm repo add stable https://charts.helm.sh/stable
helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
- name: Run chart-releaser - name: Run chart-releaser
uses: helm/chart-releaser-action@v1.1.0 uses: helm/chart-releaser-action@v1.1.0
env: env: