From 227e1cf2ddf64e922b45a735059537af9eb31f5d Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Mon, 28 Aug 2023 17:06:17 +0300 Subject: [PATCH] Publish helm chart to github pages --- .github/workflows/pages.yml | 48 +++++++++++++++++++ deploy/helm/{ => csi-s3}/Chart.yaml | 0 deploy/helm/{ => csi-s3}/README.md | 0 deploy/helm/{ => csi-s3}/manifest.yaml | 0 .../helm/{ => csi-s3}/templates/csi-s3.yaml | 0 .../helm/{ => csi-s3}/templates/driver.yaml | 0 .../{ => csi-s3}/templates/provisioner.yaml | 0 .../helm/{ => csi-s3}/templates/secret.yaml | 0 .../{ => csi-s3}/templates/storageclass.yaml | 0 deploy/helm/{ => csi-s3}/values.yaml | 0 10 files changed, 48 insertions(+) create mode 100644 .github/workflows/pages.yml rename deploy/helm/{ => csi-s3}/Chart.yaml (100%) rename deploy/helm/{ => csi-s3}/README.md (100%) rename deploy/helm/{ => csi-s3}/manifest.yaml (100%) rename deploy/helm/{ => csi-s3}/templates/csi-s3.yaml (100%) rename deploy/helm/{ => csi-s3}/templates/driver.yaml (100%) rename deploy/helm/{ => csi-s3}/templates/provisioner.yaml (100%) rename deploy/helm/{ => csi-s3}/templates/secret.yaml (100%) rename deploy/helm/{ => csi-s3}/templates/storageclass.yaml (100%) rename deploy/helm/{ => csi-s3}/values.yaml (100%) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..fb55e14 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,48 @@ +name: Publish Helm chart + +on: + push: + branches: + - master + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: write + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + + deploy: + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup Pages + uses: actions/configure-pages@v3 + + - name: Publish Helm chart + uses: stefanprodan/helm-gh-pages@0ad2bb377311d61ac04ad9eb6f252fb68e207260 # v1.7.0 + with: + # GitHub automatically creates a GITHUB_TOKEN secret to use in your workflow. You can use the GITHUB_TOKEN to authenticate in a workflow run. + # See https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret + token: ${{ secrets.GITHUB_TOKEN }} + branch: github-pages + charts_dir: deploy/helm + target_dir: charts + linting: off diff --git a/deploy/helm/Chart.yaml b/deploy/helm/csi-s3/Chart.yaml similarity index 100% rename from deploy/helm/Chart.yaml rename to deploy/helm/csi-s3/Chart.yaml diff --git a/deploy/helm/README.md b/deploy/helm/csi-s3/README.md similarity index 100% rename from deploy/helm/README.md rename to deploy/helm/csi-s3/README.md diff --git a/deploy/helm/manifest.yaml b/deploy/helm/csi-s3/manifest.yaml similarity index 100% rename from deploy/helm/manifest.yaml rename to deploy/helm/csi-s3/manifest.yaml diff --git a/deploy/helm/templates/csi-s3.yaml b/deploy/helm/csi-s3/templates/csi-s3.yaml similarity index 100% rename from deploy/helm/templates/csi-s3.yaml rename to deploy/helm/csi-s3/templates/csi-s3.yaml diff --git a/deploy/helm/templates/driver.yaml b/deploy/helm/csi-s3/templates/driver.yaml similarity index 100% rename from deploy/helm/templates/driver.yaml rename to deploy/helm/csi-s3/templates/driver.yaml diff --git a/deploy/helm/templates/provisioner.yaml b/deploy/helm/csi-s3/templates/provisioner.yaml similarity index 100% rename from deploy/helm/templates/provisioner.yaml rename to deploy/helm/csi-s3/templates/provisioner.yaml diff --git a/deploy/helm/templates/secret.yaml b/deploy/helm/csi-s3/templates/secret.yaml similarity index 100% rename from deploy/helm/templates/secret.yaml rename to deploy/helm/csi-s3/templates/secret.yaml diff --git a/deploy/helm/templates/storageclass.yaml b/deploy/helm/csi-s3/templates/storageclass.yaml similarity index 100% rename from deploy/helm/templates/storageclass.yaml rename to deploy/helm/csi-s3/templates/storageclass.yaml diff --git a/deploy/helm/values.yaml b/deploy/helm/csi-s3/values.yaml similarity index 100% rename from deploy/helm/values.yaml rename to deploy/helm/csi-s3/values.yaml