mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
a1c0934e01
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
81 lines
1.8 KiB
YAML
81 lines
1.8 KiB
YAML
name: Helm
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- release-*
|
|
paths:
|
|
- 'deploy/charts/**'
|
|
pull_request:
|
|
paths:
|
|
- 'deploy/charts/**'
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
lint-and-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Generate chart
|
|
run: |
|
|
make helm.generate
|
|
|
|
- name: Set up Helm
|
|
uses: azure/setup-helm@v2.0
|
|
with:
|
|
version: v3.4.2
|
|
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.7
|
|
|
|
- name: Set up chart-testing
|
|
uses: helm/chart-testing-action@v2.2.0
|
|
|
|
- name: Run chart-testing (list-changed)
|
|
id: list-changed
|
|
run: |
|
|
changed=$(ct list-changed --config=.github/ci/ct.yaml)
|
|
if [[ -n "$changed" ]]; then
|
|
echo "::set-output name=changed::true"
|
|
fi
|
|
|
|
- name: Run chart-testing (lint)
|
|
run: ct lint --config=.github/ci/ct.yaml
|
|
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Configure Git
|
|
run: |
|
|
git config user.name "$GITHUB_ACTOR"
|
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
|
|
- name: Set up Helm
|
|
uses: azure/setup-helm@v2.0
|
|
with:
|
|
version: v3.4.2
|
|
|
|
- name: Generate chart
|
|
run: |
|
|
make helm.generate
|
|
|
|
- name: Run chart-releaser
|
|
uses: helm/chart-releaser-action@v1.3.0
|
|
if: github.ref == 'refs/heads/main'
|
|
env:
|
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}"
|
|
with:
|
|
charts_dir: deploy/charts
|
|
charts_repo_url: https://charts.external-secrets.io
|