Skip to content

Commit

Permalink
👷(helm) add CI for publishing Helm charts
Browse files Browse the repository at this point in the history
We need to publish a Helm chart to facilitate separating the code from
the deployment configuration.
  • Loading branch information
rouja committed Jan 10, 2025
1 parent 76c38f8 commit fd758d4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/helmfile-linter.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/release-helmchart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release Chart
run-name: Release Chart

on:
pull_request:
push:
paths:
- ./src/helm/desk/**

jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Cleanup
run: rm -rf ./src/helm/extra

- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Publish Helm charts
uses: numerique-gouv/helm-gh-pages@add-overwrite-option
with:
charts_dir: ./src/helm
linting: on
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fd758d4

Please sign in to comment.