From d62a5541b6f892c0c1f4e1eb095379bba8e4067c Mon Sep 17 00:00:00 2001 From: mehdi-ra Date: Mon, 24 Jul 2023 17:17:41 +0330 Subject: [PATCH] refactor(release.yaml): rollback to older release --- .github/workflows/release.yaml | 36 ++++++++++++++++--- .helmignore => chart/generic/.helmignore | 0 Chart.yaml => chart/generic/Chart.yaml | 0 .../generic/templates}/_helpers.tpl | 0 .../templates}/alertmanagerconfig.yaml | 0 .../generic/templates}/certificate.yaml | 0 .../generic/templates}/configmap.yaml | 0 .../generic/templates}/cronjob.yaml | 0 .../generic/templates}/deployment.yaml | 0 .../generic/templates}/endpointmonitor.yaml | 0 .../generic/templates}/externalsecrets.yaml | 0 .../generic/templates}/forecastle.yaml | 0 .../generic/templates}/grafanadashboard.yaml | 0 .../generic/templates}/hpa.yaml | 0 .../generic/templates}/ingress.yaml | 0 .../generic/templates}/networkpolicy.yaml | 0 .../generic/templates}/pdb.yaml | 0 .../generic/templates}/prometheusrule.yaml | 0 .../generic/templates}/pvc.yaml | 0 .../generic/templates}/role.yaml | 0 .../generic/templates}/rolebinding.yaml | 0 .../generic/templates}/route.yaml | 0 .../generic/templates}/sealedsecrets.yaml | 0 .../generic/templates}/secret.yaml | 0 .../templates}/secretproviderclass.yaml | 0 .../generic/templates}/service.yaml | 0 .../generic/templates}/serviceaccount.yaml | 0 .../generic/templates}/servicemonitor.yaml | 0 .../generic/templates}/vpa.yaml | 0 .../generic/tests}/cronjob_test.yaml | 0 .../generic/tests}/deployment_test.yaml | 0 {tests => chart/generic/tests}/hpa_test.yaml | 0 {tests => chart/generic/tests}/pdb_test.yaml | 0 {tests => chart/generic/tests}/pvc_test.yaml | 0 .../generic/tests}/serviceaccount_test.yaml | 0 values.yaml => chart/generic/values.yaml | 0 36 files changed, 31 insertions(+), 5 deletions(-) rename .helmignore => chart/generic/.helmignore (100%) rename Chart.yaml => chart/generic/Chart.yaml (100%) rename {templates => chart/generic/templates}/_helpers.tpl (100%) rename {templates => chart/generic/templates}/alertmanagerconfig.yaml (100%) rename {templates => chart/generic/templates}/certificate.yaml (100%) rename {templates => chart/generic/templates}/configmap.yaml (100%) rename {templates => chart/generic/templates}/cronjob.yaml (100%) rename {templates => chart/generic/templates}/deployment.yaml (100%) rename {templates => chart/generic/templates}/endpointmonitor.yaml (100%) rename {templates => chart/generic/templates}/externalsecrets.yaml (100%) rename {templates => chart/generic/templates}/forecastle.yaml (100%) rename {templates => chart/generic/templates}/grafanadashboard.yaml (100%) rename {templates => chart/generic/templates}/hpa.yaml (100%) rename {templates => chart/generic/templates}/ingress.yaml (100%) rename {templates => chart/generic/templates}/networkpolicy.yaml (100%) rename {templates => chart/generic/templates}/pdb.yaml (100%) rename {templates => chart/generic/templates}/prometheusrule.yaml (100%) rename {templates => chart/generic/templates}/pvc.yaml (100%) rename {templates => chart/generic/templates}/role.yaml (100%) rename {templates => chart/generic/templates}/rolebinding.yaml (100%) rename {templates => chart/generic/templates}/route.yaml (100%) rename {templates => chart/generic/templates}/sealedsecrets.yaml (100%) rename {templates => chart/generic/templates}/secret.yaml (100%) rename {templates => chart/generic/templates}/secretproviderclass.yaml (100%) rename {templates => chart/generic/templates}/service.yaml (100%) rename {templates => chart/generic/templates}/serviceaccount.yaml (100%) rename {templates => chart/generic/templates}/servicemonitor.yaml (100%) rename {templates => chart/generic/templates}/vpa.yaml (100%) rename {tests => chart/generic/tests}/cronjob_test.yaml (100%) rename {tests => chart/generic/tests}/deployment_test.yaml (100%) rename {tests => chart/generic/tests}/hpa_test.yaml (100%) rename {tests => chart/generic/tests}/pdb_test.yaml (100%) rename {tests => chart/generic/tests}/pvc_test.yaml (100%) rename {tests => chart/generic/tests}/serviceaccount_test.yaml (100%) rename values.yaml => chart/generic/values.yaml (100%) 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