diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..aef5252 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release Helm Chart + +on: + push: + +jobs: + release: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - name: "Checkout code" + 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: "Install Helm" + uses: azure/setup-helm@v4 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + + - name: "Run chart-releaser" + uses: helm/chart-releaser-action@v1.6.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.helmignore b/charts/larakube/.helmignore similarity index 100% rename from .helmignore rename to charts/larakube/.helmignore diff --git a/Chart.yaml b/charts/larakube/Chart.yaml similarity index 100% rename from Chart.yaml rename to charts/larakube/Chart.yaml diff --git a/templates/NOTES.txt b/charts/larakube/templates/NOTES.txt similarity index 100% rename from templates/NOTES.txt rename to charts/larakube/templates/NOTES.txt diff --git a/templates/_helpers.tpl b/charts/larakube/templates/_helpers.tpl similarity index 100% rename from templates/_helpers.tpl rename to charts/larakube/templates/_helpers.tpl diff --git a/templates/cert-manager-cert.yml b/charts/larakube/templates/cert-manager-cert.yml similarity index 100% rename from templates/cert-manager-cert.yml rename to charts/larakube/templates/cert-manager-cert.yml diff --git a/templates/configmap-env.yaml b/charts/larakube/templates/configmap-env.yaml similarity index 100% rename from templates/configmap-env.yaml rename to charts/larakube/templates/configmap-env.yaml diff --git a/templates/cronjob-scheduler.yaml b/charts/larakube/templates/cronjob-scheduler.yaml similarity index 100% rename from templates/cronjob-scheduler.yaml rename to charts/larakube/templates/cronjob-scheduler.yaml diff --git a/templates/deployment-web.yaml b/charts/larakube/templates/deployment-web.yaml similarity index 100% rename from templates/deployment-web.yaml rename to charts/larakube/templates/deployment-web.yaml diff --git a/templates/deployment-worker.yaml b/charts/larakube/templates/deployment-worker.yaml similarity index 100% rename from templates/deployment-worker.yaml rename to charts/larakube/templates/deployment-worker.yaml diff --git a/templates/hpa-web.yaml b/charts/larakube/templates/hpa-web.yaml similarity index 100% rename from templates/hpa-web.yaml rename to charts/larakube/templates/hpa-web.yaml diff --git a/templates/hpa-worker.yaml b/charts/larakube/templates/hpa-worker.yaml similarity index 100% rename from templates/hpa-worker.yaml rename to charts/larakube/templates/hpa-worker.yaml diff --git a/templates/ingress-traefik.yml b/charts/larakube/templates/ingress-traefik.yml similarity index 100% rename from templates/ingress-traefik.yml rename to charts/larakube/templates/ingress-traefik.yml diff --git a/templates/ingress.yaml b/charts/larakube/templates/ingress.yaml similarity index 100% rename from templates/ingress.yaml rename to charts/larakube/templates/ingress.yaml diff --git a/templates/job-db-migrate.yaml b/charts/larakube/templates/job-db-migrate.yaml similarity index 100% rename from templates/job-db-migrate.yaml rename to charts/larakube/templates/job-db-migrate.yaml diff --git a/templates/middleware-traefik.yml b/charts/larakube/templates/middleware-traefik.yml similarity index 100% rename from templates/middleware-traefik.yml rename to charts/larakube/templates/middleware-traefik.yml diff --git a/templates/service-web.yaml b/charts/larakube/templates/service-web.yaml similarity index 100% rename from templates/service-web.yaml rename to charts/larakube/templates/service-web.yaml diff --git a/templates/serviceaccount.yaml b/charts/larakube/templates/serviceaccount.yaml similarity index 100% rename from templates/serviceaccount.yaml rename to charts/larakube/templates/serviceaccount.yaml diff --git a/templates/tests/test-connection.yaml b/charts/larakube/templates/tests/test-connection.yaml similarity index 100% rename from templates/tests/test-connection.yaml rename to charts/larakube/templates/tests/test-connection.yaml diff --git a/values.yaml b/charts/larakube/values.yaml similarity index 100% rename from values.yaml rename to charts/larakube/values.yaml