diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 860f40b..2c2d9db 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,15 +1,41 @@ -name: Simple semver release +name: "Generic chart SemVer release" on: push: - branches: ["main"] + branches: ["develop"] jobs: - build: - runs-on: ubuntu-latest + release: + runs-on: ubuntu-22.04 + permissions: + actions: none + checks: none + contents: write + deployments: none + issues: none + packages: none + pull-requests: none + repository-projects: none + security-events: none + statuses: none + steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: arwynfr/actions-conventional-versioning@v2 + - 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@v1 + with: + version: v3.8.1 + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.4.0 + with: + charts_dir: . + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.helmignore b/chart/generic/.helmignore similarity index 100% rename from .helmignore rename to chart/generic/.helmignore diff --git a/Chart.yaml b/chart/generic/Chart.yaml similarity index 100% rename from Chart.yaml rename to chart/generic/Chart.yaml diff --git a/templates/_helpers.tpl b/chart/generic/templates/_helpers.tpl similarity index 100% rename from templates/_helpers.tpl rename to chart/generic/templates/_helpers.tpl diff --git a/templates/alertmanagerconfig.yaml b/chart/generic/templates/alertmanagerconfig.yaml similarity index 100% rename from templates/alertmanagerconfig.yaml rename to chart/generic/templates/alertmanagerconfig.yaml diff --git a/templates/certificate.yaml b/chart/generic/templates/certificate.yaml similarity index 100% rename from templates/certificate.yaml rename to chart/generic/templates/certificate.yaml diff --git a/templates/configmap.yaml b/chart/generic/templates/configmap.yaml similarity index 100% rename from templates/configmap.yaml rename to chart/generic/templates/configmap.yaml diff --git a/templates/cronjob.yaml b/chart/generic/templates/cronjob.yaml similarity index 100% rename from templates/cronjob.yaml rename to chart/generic/templates/cronjob.yaml diff --git a/templates/deployment.yaml b/chart/generic/templates/deployment.yaml similarity index 100% rename from templates/deployment.yaml rename to chart/generic/templates/deployment.yaml diff --git a/templates/endpointmonitor.yaml b/chart/generic/templates/endpointmonitor.yaml similarity index 100% rename from templates/endpointmonitor.yaml rename to chart/generic/templates/endpointmonitor.yaml diff --git a/templates/externalsecrets.yaml b/chart/generic/templates/externalsecrets.yaml similarity index 100% rename from templates/externalsecrets.yaml rename to chart/generic/templates/externalsecrets.yaml diff --git a/templates/forecastle.yaml b/chart/generic/templates/forecastle.yaml similarity index 100% rename from templates/forecastle.yaml rename to chart/generic/templates/forecastle.yaml diff --git a/templates/grafanadashboard.yaml b/chart/generic/templates/grafanadashboard.yaml similarity index 100% rename from templates/grafanadashboard.yaml rename to chart/generic/templates/grafanadashboard.yaml diff --git a/templates/hpa.yaml b/chart/generic/templates/hpa.yaml similarity index 100% rename from templates/hpa.yaml rename to chart/generic/templates/hpa.yaml diff --git a/templates/ingress.yaml b/chart/generic/templates/ingress.yaml similarity index 100% rename from templates/ingress.yaml rename to chart/generic/templates/ingress.yaml diff --git a/templates/networkpolicy.yaml b/chart/generic/templates/networkpolicy.yaml similarity index 100% rename from templates/networkpolicy.yaml rename to chart/generic/templates/networkpolicy.yaml diff --git a/templates/pdb.yaml b/chart/generic/templates/pdb.yaml similarity index 100% rename from templates/pdb.yaml rename to chart/generic/templates/pdb.yaml diff --git a/templates/prometheusrule.yaml b/chart/generic/templates/prometheusrule.yaml similarity index 100% rename from templates/prometheusrule.yaml rename to chart/generic/templates/prometheusrule.yaml diff --git a/templates/pvc.yaml b/chart/generic/templates/pvc.yaml similarity index 100% rename from templates/pvc.yaml rename to chart/generic/templates/pvc.yaml diff --git a/templates/role.yaml b/chart/generic/templates/role.yaml similarity index 100% rename from templates/role.yaml rename to chart/generic/templates/role.yaml diff --git a/templates/rolebinding.yaml b/chart/generic/templates/rolebinding.yaml similarity index 100% rename from templates/rolebinding.yaml rename to chart/generic/templates/rolebinding.yaml diff --git a/templates/route.yaml b/chart/generic/templates/route.yaml similarity index 100% rename from templates/route.yaml rename to chart/generic/templates/route.yaml diff --git a/templates/sealedsecrets.yaml b/chart/generic/templates/sealedsecrets.yaml similarity index 100% rename from templates/sealedsecrets.yaml rename to chart/generic/templates/sealedsecrets.yaml diff --git a/templates/secret.yaml b/chart/generic/templates/secret.yaml similarity index 100% rename from templates/secret.yaml rename to chart/generic/templates/secret.yaml diff --git a/templates/secretproviderclass.yaml b/chart/generic/templates/secretproviderclass.yaml similarity index 100% rename from templates/secretproviderclass.yaml rename to chart/generic/templates/secretproviderclass.yaml diff --git a/templates/service.yaml b/chart/generic/templates/service.yaml similarity index 100% rename from templates/service.yaml rename to chart/generic/templates/service.yaml diff --git a/templates/serviceaccount.yaml b/chart/generic/templates/serviceaccount.yaml similarity index 100% rename from templates/serviceaccount.yaml rename to chart/generic/templates/serviceaccount.yaml diff --git a/templates/servicemonitor.yaml b/chart/generic/templates/servicemonitor.yaml similarity index 100% rename from templates/servicemonitor.yaml rename to chart/generic/templates/servicemonitor.yaml diff --git a/templates/vpa.yaml b/chart/generic/templates/vpa.yaml similarity index 100% rename from templates/vpa.yaml rename to chart/generic/templates/vpa.yaml diff --git a/tests/cronjob_test.yaml b/chart/generic/tests/cronjob_test.yaml similarity index 100% rename from tests/cronjob_test.yaml rename to chart/generic/tests/cronjob_test.yaml diff --git a/tests/deployment_test.yaml b/chart/generic/tests/deployment_test.yaml similarity index 100% rename from tests/deployment_test.yaml rename to chart/generic/tests/deployment_test.yaml diff --git a/tests/hpa_test.yaml b/chart/generic/tests/hpa_test.yaml similarity index 100% rename from tests/hpa_test.yaml rename to chart/generic/tests/hpa_test.yaml diff --git a/tests/pdb_test.yaml b/chart/generic/tests/pdb_test.yaml similarity index 100% rename from tests/pdb_test.yaml rename to chart/generic/tests/pdb_test.yaml diff --git a/tests/pvc_test.yaml b/chart/generic/tests/pvc_test.yaml similarity index 100% rename from tests/pvc_test.yaml rename to chart/generic/tests/pvc_test.yaml diff --git a/tests/serviceaccount_test.yaml b/chart/generic/tests/serviceaccount_test.yaml similarity index 100% rename from tests/serviceaccount_test.yaml rename to chart/generic/tests/serviceaccount_test.yaml diff --git a/values.yaml b/chart/generic/values.yaml similarity index 100% rename from values.yaml rename to chart/generic/values.yaml