From 2577a2327f5e6f9751b539a6002d12dc12adc3e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Cottin?= Date: Mon, 10 Mar 2025 15:48:30 +0100 Subject: [PATCH] release chart on github --- .github/workflows/release_chart.yaml | 33 +++++++++++++++++++ .github/workflows/release_tags.yml | 2 +- {chart => charts/kube-httpcache}/.helmignore | 0 {chart => charts/kube-httpcache}/Chart.yaml | 0 .../kube-httpcache}/templates/NOTES.txt | 0 .../kube-httpcache}/templates/_helpers.tpl | 0 .../kube-httpcache}/templates/configmap.yaml | 0 .../kube-httpcache}/templates/deployment.yaml | 0 .../kube-httpcache}/templates/hpa.yaml | 0 .../kube-httpcache}/templates/ingress.yaml | 0 .../kube-httpcache}/templates/pdb.yaml | 0 .../kube-httpcache}/templates/rbac.yaml | 0 .../kube-httpcache}/templates/secret.yaml | 0 .../kube-httpcache}/templates/service.yaml | 0 .../templates/serviceaccount.yaml | 0 .../templates/servicemonitor.yaml | 0 .../templates/statefulset.yaml | 0 {chart => charts/kube-httpcache}/values.yaml | 0 18 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release_chart.yaml rename {chart => charts/kube-httpcache}/.helmignore (100%) rename {chart => charts/kube-httpcache}/Chart.yaml (100%) rename {chart => charts/kube-httpcache}/templates/NOTES.txt (100%) rename {chart => charts/kube-httpcache}/templates/_helpers.tpl (100%) rename {chart => charts/kube-httpcache}/templates/configmap.yaml (100%) rename {chart => charts/kube-httpcache}/templates/deployment.yaml (100%) rename {chart => charts/kube-httpcache}/templates/hpa.yaml (100%) rename {chart => charts/kube-httpcache}/templates/ingress.yaml (100%) rename {chart => charts/kube-httpcache}/templates/pdb.yaml (100%) rename {chart => charts/kube-httpcache}/templates/rbac.yaml (100%) rename {chart => charts/kube-httpcache}/templates/secret.yaml (100%) rename {chart => charts/kube-httpcache}/templates/service.yaml (100%) rename {chart => charts/kube-httpcache}/templates/serviceaccount.yaml (100%) rename {chart => charts/kube-httpcache}/templates/servicemonitor.yaml (100%) rename {chart => charts/kube-httpcache}/templates/statefulset.yaml (100%) rename {chart => charts/kube-httpcache}/values.yaml (100%) diff --git a/.github/workflows/release_chart.yaml b/.github/workflows/release_chart.yaml new file mode 100644 index 00000000..9ec55ede --- /dev/null +++ b/.github/workflows/release_chart.yaml @@ -0,0 +1,33 @@ + +name: Release Chart + +on: + push: + branches: + - master + - main + tags: + - '*' + +jobs: + release: + # depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions + # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token + permissions: + contents: write + 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: Run chart-releaser + uses: helm/chart-releaser-action@v1.7.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/.github/workflows/release_tags.yml b/.github/workflows/release_tags.yml index bb1e8eac..f5e0f6eb 100644 --- a/.github/workflows/release_tags.yml +++ b/.github/workflows/release_tags.yml @@ -35,7 +35,7 @@ jobs: uses: mittwald/bump-app-version-action@v1 with: mode: 'publish' - chartYaml: './chart/Chart.yaml' + chartYaml: './charts/kube-httpcache/Chart.yaml' env: GITHUB_TOKEN: "${{ secrets.RELEASE_USER_TOKEN }}" HELM_REPO_PASSWORD: "${{ secrets.HELM_REPO_PASSWORD }}" diff --git a/chart/.helmignore b/charts/kube-httpcache/.helmignore similarity index 100% rename from chart/.helmignore rename to charts/kube-httpcache/.helmignore diff --git a/chart/Chart.yaml b/charts/kube-httpcache/Chart.yaml similarity index 100% rename from chart/Chart.yaml rename to charts/kube-httpcache/Chart.yaml diff --git a/chart/templates/NOTES.txt b/charts/kube-httpcache/templates/NOTES.txt similarity index 100% rename from chart/templates/NOTES.txt rename to charts/kube-httpcache/templates/NOTES.txt diff --git a/chart/templates/_helpers.tpl b/charts/kube-httpcache/templates/_helpers.tpl similarity index 100% rename from chart/templates/_helpers.tpl rename to charts/kube-httpcache/templates/_helpers.tpl diff --git a/chart/templates/configmap.yaml b/charts/kube-httpcache/templates/configmap.yaml similarity index 100% rename from chart/templates/configmap.yaml rename to charts/kube-httpcache/templates/configmap.yaml diff --git a/chart/templates/deployment.yaml b/charts/kube-httpcache/templates/deployment.yaml similarity index 100% rename from chart/templates/deployment.yaml rename to charts/kube-httpcache/templates/deployment.yaml diff --git a/chart/templates/hpa.yaml b/charts/kube-httpcache/templates/hpa.yaml similarity index 100% rename from chart/templates/hpa.yaml rename to charts/kube-httpcache/templates/hpa.yaml diff --git a/chart/templates/ingress.yaml b/charts/kube-httpcache/templates/ingress.yaml similarity index 100% rename from chart/templates/ingress.yaml rename to charts/kube-httpcache/templates/ingress.yaml diff --git a/chart/templates/pdb.yaml b/charts/kube-httpcache/templates/pdb.yaml similarity index 100% rename from chart/templates/pdb.yaml rename to charts/kube-httpcache/templates/pdb.yaml diff --git a/chart/templates/rbac.yaml b/charts/kube-httpcache/templates/rbac.yaml similarity index 100% rename from chart/templates/rbac.yaml rename to charts/kube-httpcache/templates/rbac.yaml diff --git a/chart/templates/secret.yaml b/charts/kube-httpcache/templates/secret.yaml similarity index 100% rename from chart/templates/secret.yaml rename to charts/kube-httpcache/templates/secret.yaml diff --git a/chart/templates/service.yaml b/charts/kube-httpcache/templates/service.yaml similarity index 100% rename from chart/templates/service.yaml rename to charts/kube-httpcache/templates/service.yaml diff --git a/chart/templates/serviceaccount.yaml b/charts/kube-httpcache/templates/serviceaccount.yaml similarity index 100% rename from chart/templates/serviceaccount.yaml rename to charts/kube-httpcache/templates/serviceaccount.yaml diff --git a/chart/templates/servicemonitor.yaml b/charts/kube-httpcache/templates/servicemonitor.yaml similarity index 100% rename from chart/templates/servicemonitor.yaml rename to charts/kube-httpcache/templates/servicemonitor.yaml diff --git a/chart/templates/statefulset.yaml b/charts/kube-httpcache/templates/statefulset.yaml similarity index 100% rename from chart/templates/statefulset.yaml rename to charts/kube-httpcache/templates/statefulset.yaml diff --git a/chart/values.yaml b/charts/kube-httpcache/values.yaml similarity index 100% rename from chart/values.yaml rename to charts/kube-httpcache/values.yaml