From 458dbf4dbde7282e854547d8d46af923293a5d1a Mon Sep 17 00:00:00 2001 From: James Date: Sat, 3 Dec 2022 18:12:04 +0000 Subject: [PATCH] feat: add chart releaser Github action (#1) --- .github/workflows/chart-releaser.yaml | 32 +++++++++++++++++++ {cinny => charts/cinny}/.helmignore | 0 {cinny => charts/cinny}/Chart.yaml | 0 {cinny => charts/cinny}/templates/NOTES.txt | 0 .../cinny}/templates/_helpers.tpl | 0 .../cinny}/templates/configmap.yaml | 0 .../cinny}/templates/deployment.yaml | 0 .../cinny}/templates/ingress.yaml | 0 .../cinny}/templates/service.yaml | 0 .../cinny}/templates/serviceaccount.yaml | 0 .../templates/tests/test-connection.yaml | 0 {cinny => charts/cinny}/values.yaml | 0 12 files changed, 32 insertions(+) create mode 100644 .github/workflows/chart-releaser.yaml rename {cinny => charts/cinny}/.helmignore (100%) rename {cinny => charts/cinny}/Chart.yaml (100%) rename {cinny => charts/cinny}/templates/NOTES.txt (100%) rename {cinny => charts/cinny}/templates/_helpers.tpl (100%) rename {cinny => charts/cinny}/templates/configmap.yaml (100%) rename {cinny => charts/cinny}/templates/deployment.yaml (100%) rename {cinny => charts/cinny}/templates/ingress.yaml (100%) rename {cinny => charts/cinny}/templates/service.yaml (100%) rename {cinny => charts/cinny}/templates/serviceaccount.yaml (100%) rename {cinny => charts/cinny}/templates/tests/test-connection.yaml (100%) rename {cinny => charts/cinny}/values.yaml (100%) diff --git a/.github/workflows/chart-releaser.yaml b/.github/workflows/chart-releaser.yaml new file mode 100644 index 0000000..9471115 --- /dev/null +++ b/.github/workflows/chart-releaser.yaml @@ -0,0 +1,32 @@ +name: Release Charts + +on: + push: + branches: + - master + +jobs: + release-charts: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + 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: Install Helm + uses: azure/setup-helm@v3 + with: + version: v3.10.2 + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.4.1 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/cinny/.helmignore b/charts/cinny/.helmignore similarity index 100% rename from cinny/.helmignore rename to charts/cinny/.helmignore diff --git a/cinny/Chart.yaml b/charts/cinny/Chart.yaml similarity index 100% rename from cinny/Chart.yaml rename to charts/cinny/Chart.yaml diff --git a/cinny/templates/NOTES.txt b/charts/cinny/templates/NOTES.txt similarity index 100% rename from cinny/templates/NOTES.txt rename to charts/cinny/templates/NOTES.txt diff --git a/cinny/templates/_helpers.tpl b/charts/cinny/templates/_helpers.tpl similarity index 100% rename from cinny/templates/_helpers.tpl rename to charts/cinny/templates/_helpers.tpl diff --git a/cinny/templates/configmap.yaml b/charts/cinny/templates/configmap.yaml similarity index 100% rename from cinny/templates/configmap.yaml rename to charts/cinny/templates/configmap.yaml diff --git a/cinny/templates/deployment.yaml b/charts/cinny/templates/deployment.yaml similarity index 100% rename from cinny/templates/deployment.yaml rename to charts/cinny/templates/deployment.yaml diff --git a/cinny/templates/ingress.yaml b/charts/cinny/templates/ingress.yaml similarity index 100% rename from cinny/templates/ingress.yaml rename to charts/cinny/templates/ingress.yaml diff --git a/cinny/templates/service.yaml b/charts/cinny/templates/service.yaml similarity index 100% rename from cinny/templates/service.yaml rename to charts/cinny/templates/service.yaml diff --git a/cinny/templates/serviceaccount.yaml b/charts/cinny/templates/serviceaccount.yaml similarity index 100% rename from cinny/templates/serviceaccount.yaml rename to charts/cinny/templates/serviceaccount.yaml diff --git a/cinny/templates/tests/test-connection.yaml b/charts/cinny/templates/tests/test-connection.yaml similarity index 100% rename from cinny/templates/tests/test-connection.yaml rename to charts/cinny/templates/tests/test-connection.yaml diff --git a/cinny/values.yaml b/charts/cinny/values.yaml similarity index 100% rename from cinny/values.yaml rename to charts/cinny/values.yaml