diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index 795f0b47..94cbe756 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -8,25 +8,37 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + fetch-depth: 0 - - name: Fetch history - run: git fetch --prune --unshallow + - name: Set up Helm + uses: azure/setup-helm@v1 + with: + version: v3.4.1 - - name: Run chart-testing (lint) - id: lint - uses: helm/chart-testing-action@v1.0.0 + - name: Set up Python + uses: actions/setup-python@v2 with: - command: lint - config: lint.yaml + python-version: 3.7 - - name: Create kind cluster - uses: helm/kind-action@v1.0.0 + - name: Set up chart-testing + uses: helm/chart-testing-action@v2.0.1 with: - install_local_path_provisioner: true - if: steps.lint.outputs.changed == 'true' + version: v3.3.0 + + - name: Run chart-testing (list-changed) + id: list-changed + run: | + changed=$(ct list-changed --config test.yaml) + if [[ -n "$changed" ]]; then + echo "::set-output name=changed::true" + fi + - name: Run chart-testing (lint) + run: ct lint --config test.yaml + + - name: Create kind cluster + uses: helm/kind-action@v1.1.0 + if: steps.list-changed.outputs.changed == 'true' - name: Run chart-testing (install) - uses: helm/chart-testing-action@v1.0.0 - with: - command: install - config: test.yaml \ No newline at end of file + run: ct install --config test.yaml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7fd7eb5a..9f78bc38 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,12 +21,11 @@ jobs: git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - name: Install Helm - run: | - curl -fsSLo get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 - chmod 700 get_helm.sh - ./get_helm.sh + uses: azure/setup-helm@v1 + with: + version: v3.4.0 - name: Run chart-releaser - uses: helm/chart-releaser-action@v1.0.0 + uses: helm/chart-releaser-action@v1.2.0 env: CR_TOKEN: "${{ secrets.CR_TOKEN }}" diff --git a/charts/sonatype-nexus/Chart.yaml b/charts/sonatype-nexus/Chart.yaml index 5c6ba898..d65c39e7 100644 --- a/charts/sonatype-nexus/Chart.yaml +++ b/charts/sonatype-nexus/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: sonatype-nexus -version: 4.4.2 +version: 4.4.3 appVersion: 3.27.0 description: Sonatype Nexus is an open source repository manager keywords: