From 994dd33519eb8f374b20baf183c4f38da282178c Mon Sep 17 00:00:00 2001 From: Olivier Boudet Date: Tue, 20 Oct 2020 17:25:42 +0200 Subject: [PATCH] publish chart --- .github/workflows/release-charts.yml | 25 +++++++++++++++++++ README.md | 4 +-- {deploy => charts}/alidns-webhook/.helmignore | 0 {deploy => charts}/alidns-webhook/Chart.yaml | 0 .../alidns-webhook/templates/NOTES.txt | 0 .../alidns-webhook/templates/_helpers.tpl | 0 .../alidns-webhook/templates/apiservice.yaml | 0 .../alidns-webhook/templates/deployment.yaml | 0 .../alidns-webhook/templates/pki.yaml | 0 .../alidns-webhook/templates/rbac.yaml | 0 .../alidns-webhook/templates/service.yaml | 0 {deploy => charts}/alidns-webhook/values.yaml | 0 12 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release-charts.yml rename {deploy => charts}/alidns-webhook/.helmignore (100%) rename {deploy => charts}/alidns-webhook/Chart.yaml (100%) rename {deploy => charts}/alidns-webhook/templates/NOTES.txt (100%) rename {deploy => charts}/alidns-webhook/templates/_helpers.tpl (100%) rename {deploy => charts}/alidns-webhook/templates/apiservice.yaml (100%) rename {deploy => charts}/alidns-webhook/templates/deployment.yaml (100%) rename {deploy => charts}/alidns-webhook/templates/pki.yaml (100%) rename {deploy => charts}/alidns-webhook/templates/rbac.yaml (100%) rename {deploy => charts}/alidns-webhook/templates/service.yaml (100%) rename {deploy => charts}/alidns-webhook/values.yaml (100%) diff --git a/.github/workflows/release-charts.yml b/.github/workflows/release-charts.yml new file mode 100644 index 0000000..6d8aed1 --- /dev/null +++ b/.github/workflows/release-charts.yml @@ -0,0 +1,25 @@ +name: Release Charts + +on: + push: + branches: + - master + +jobs: + release: + 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: Run chart-releaser + uses: helm/chart-releaser-action@v1.0.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/README.md b/README.md index 9a032d2..d576268 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,9 @@ docker build . -t /alidns-webhook:latest docker push /alidns-webhook ``` -Use the helm chart in deploy directory. +Use the helm chart in charts directory. ``` -helm template deploy --set image.repository= --set image.tag=latest +helm template charts --set image.repository= --set image.tag=latest ``` Create the secret holding alibaba credential : diff --git a/deploy/alidns-webhook/.helmignore b/charts/alidns-webhook/.helmignore similarity index 100% rename from deploy/alidns-webhook/.helmignore rename to charts/alidns-webhook/.helmignore diff --git a/deploy/alidns-webhook/Chart.yaml b/charts/alidns-webhook/Chart.yaml similarity index 100% rename from deploy/alidns-webhook/Chart.yaml rename to charts/alidns-webhook/Chart.yaml diff --git a/deploy/alidns-webhook/templates/NOTES.txt b/charts/alidns-webhook/templates/NOTES.txt similarity index 100% rename from deploy/alidns-webhook/templates/NOTES.txt rename to charts/alidns-webhook/templates/NOTES.txt diff --git a/deploy/alidns-webhook/templates/_helpers.tpl b/charts/alidns-webhook/templates/_helpers.tpl similarity index 100% rename from deploy/alidns-webhook/templates/_helpers.tpl rename to charts/alidns-webhook/templates/_helpers.tpl diff --git a/deploy/alidns-webhook/templates/apiservice.yaml b/charts/alidns-webhook/templates/apiservice.yaml similarity index 100% rename from deploy/alidns-webhook/templates/apiservice.yaml rename to charts/alidns-webhook/templates/apiservice.yaml diff --git a/deploy/alidns-webhook/templates/deployment.yaml b/charts/alidns-webhook/templates/deployment.yaml similarity index 100% rename from deploy/alidns-webhook/templates/deployment.yaml rename to charts/alidns-webhook/templates/deployment.yaml diff --git a/deploy/alidns-webhook/templates/pki.yaml b/charts/alidns-webhook/templates/pki.yaml similarity index 100% rename from deploy/alidns-webhook/templates/pki.yaml rename to charts/alidns-webhook/templates/pki.yaml diff --git a/deploy/alidns-webhook/templates/rbac.yaml b/charts/alidns-webhook/templates/rbac.yaml similarity index 100% rename from deploy/alidns-webhook/templates/rbac.yaml rename to charts/alidns-webhook/templates/rbac.yaml diff --git a/deploy/alidns-webhook/templates/service.yaml b/charts/alidns-webhook/templates/service.yaml similarity index 100% rename from deploy/alidns-webhook/templates/service.yaml rename to charts/alidns-webhook/templates/service.yaml diff --git a/deploy/alidns-webhook/values.yaml b/charts/alidns-webhook/values.yaml similarity index 100% rename from deploy/alidns-webhook/values.yaml rename to charts/alidns-webhook/values.yaml