Fix publish chart #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Chart | |
on: | |
workflow_dispatch: # Enable manual generation | |
pull_request: | |
push: | |
tags: | |
- "v*" | |
paths: | |
- "chart/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-chart | |
cancel-in-progress: true | |
jobs: | |
lint: | |
permissions: | |
contents: read | |
pull-requests: read | |
name: Lint Helm Chart | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: chart/ | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: azure/setup-helm@v4 | |
- run: helm dep update | |
- run: helm lint | |
github-release: | |
name: Create/Update GitHub Release | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create Release / Change Logs | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: false | |
prerelease: false | |
generate_release_notes: true | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: chart/ | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Helm | |
uses: azure/setup-helm@v4 | |
- run: helm dep update | |
# Ensure that the chart's default values produce manifests | |
- run: helm template test ./ | |
- name: checkout jetstack-charts | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.JETSTACK_CHARTS_PAT }} | |
repository: jetstack/jetstack-charts | |
ref: main | |
path: jetstack-charts | |
- name: Package helm chart | |
run: | | |
helm package . -d ${{github.workspace}}/jetstack-charts/charts/ | |
- name: Creating PR | |
uses: peter-evans/[email protected] | |
with: | |
token: ${{ secrets.JETSTACK_CHARTS_PAT }} | |
title: "Release FinOps Stack ${{github.ref_name }}" | |
commit-message: "Release FinOps Stack ${{github.ref_name }}" | |
branch: finops-stack/${{github.ref_name}} | |
path: jetstack-charts | |
add-paths: charts/*.tgz | |
delete-branch: true | |
signoff: true | |
base: main | |
draft: false |