44 lines
974 B
YAML
44 lines
974 B
YAML
# FleetDM Stack Helm Chart Release Pipeline
|
|
# Publishes chart to GitHub Pages when version is bumped
|
|
# Requires: GITHUB_TOKEN, chart-releaser-action
|
|
|
|
name: Release Helm Chart
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'fleetdm-stack/**'
|
|
- '.github/workflows/release.yaml'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
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: Install Helm
|
|
uses: azure/setup-helm@v4
|
|
with:
|
|
version: 'v3.14.0'
|
|
|
|
- name: Run chart-releaser
|
|
uses: helm/chart-releaser-action@v1.6.0
|
|
with:
|
|
charts_dir: fleetdm-stack
|
|
chart_release_dir: .tmp
|
|
env:
|
|
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|