Skip to content

Commit de5ebb4

Browse files
committed
feat: add Helm chart publishing and ignore generated artifacts
1 parent a45ddd6 commit de5ebb4

File tree

5 files changed

+40
-7
lines changed

5 files changed

+40
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,50 @@ jobs:
8282
env:
8383
RELEASE_TAG: v${{ needs.check_if_version_upgraded.outputs.to_version }}
8484
steps:
85+
- name: Checkout repository
86+
uses: actions/checkout@v4
87+
- name: Install Helm
88+
uses: azure/setup-helm@v4
89+
- name: Package Helm chart
90+
run: |
91+
helm package helm-charts/catalogi
8592
- name: "Generate release on github"
8693
uses: softprops/action-gh-release@v2
8794
with:
8895
name: Release ${{ env.RELEASE_TAG }}
8996
prerelease: false
9097
tag_name: ${{ env.RELEASE_TAG }}
9198
generate_release_notes: true
99+
files: catalogi-*.tgz
92100
token: ${{ secrets.GITHUB_TOKEN }}
93101

102+
publish_helm_index:
103+
name: Publish Helm chart index
104+
runs-on: ubuntu-latest
105+
needs:
106+
- check_if_version_upgraded
107+
- create_github_release
108+
if: needs.check_if_version_upgraded.outputs.is_upgraded_version == 'true'
109+
env:
110+
TO_VERSION: ${{ needs.check_if_version_upgraded.outputs.to_version }}
111+
steps:
112+
- name: Checkout repository
113+
uses: actions/checkout@v4
114+
- name: Install Helm
115+
uses: azure/setup-helm@v4
116+
- name: Create charts directory
117+
run: mkdir -p docs/charts
118+
- name: Generate Helm repository index
119+
run: |
120+
helm repo index docs/charts/ --url https://github.com/codegouvfr/catalogi/releases/download/v${TO_VERSION}/
121+
- name: Commit and push index.yaml
122+
run: |
123+
git config --local user.email "[email protected]"
124+
git config --local user.name "GitHub Actions"
125+
git add docs/charts/index.yaml
126+
git commit -m "chore: update Helm chart index for v${TO_VERSION}"
127+
git push
128+
94129
docker:
95130
name: Build and push Docker images
96131
runs-on: ubuntu-latest

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ docker-data
77
.bruno
88
dump*
99
CLAUDE.md
10+
11+
# Helm
12+
helm-charts/*/Chart.lock
13+
helm-charts/*/charts/

helm-charts/catalogi/Chart.lock

Lines changed: 0 additions & 6 deletions
This file was deleted.

helm-charts/catalogi/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: catalogi
33
description: A Helm chart for deploying the Catalogi open source software catalog.
44
type: application
5-
version: 2.0.10
5+
version: 2.0.11
66
appVersion: 1.52.0
77
dependencies:
88
- name: postgresql
-83.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)