From 5b25a2057bdb3862f5171994ed4cf1d18aa85e30 Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Mon, 3 Oct 2022 16:21:12 +0200 Subject: [PATCH] added release workflow for github --- .github/workflows/release.yml | 31 +++++++++++++++++++ .../bitwarden-crd-operator/.helmignore | 0 .../bitwarden-crd-operator/Chart.yaml | 0 .../crds/bitwarden-secrets.yaml | 0 .../templates/NOTES.txt | 0 .../templates/_helpers.tpl | 0 .../templates/clusterrole.yaml | 0 .../templates/deployment.yaml | 0 .../bitwarden-crd-operator/templates/hpa.yaml | 0 .../templates/rolebinding.yaml | 0 .../templates/serviceaccount.yaml | 0 .../bitwarden-crd-operator/values.yaml | 0 12 files changed, 31 insertions(+) create mode 100644 .github/workflows/release.yml rename {chart => charts}/bitwarden-crd-operator/.helmignore (100%) rename {chart => charts}/bitwarden-crd-operator/Chart.yaml (100%) rename {chart => charts}/bitwarden-crd-operator/crds/bitwarden-secrets.yaml (100%) rename {chart => charts}/bitwarden-crd-operator/templates/NOTES.txt (100%) rename {chart => charts}/bitwarden-crd-operator/templates/_helpers.tpl (100%) rename {chart => charts}/bitwarden-crd-operator/templates/clusterrole.yaml (100%) rename {chart => charts}/bitwarden-crd-operator/templates/deployment.yaml (100%) rename {chart => charts}/bitwarden-crd-operator/templates/hpa.yaml (100%) rename {chart => charts}/bitwarden-crd-operator/templates/rolebinding.yaml (100%) rename {chart => charts}/bitwarden-crd-operator/templates/serviceaccount.yaml (100%) rename {chart => charts}/bitwarden-crd-operator/values.yaml (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e998a28 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Release Charts + +on: + release: + types: [published] + +jobs: + release: + 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.0 + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.4.1 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/chart/bitwarden-crd-operator/.helmignore b/charts/bitwarden-crd-operator/.helmignore similarity index 100% rename from chart/bitwarden-crd-operator/.helmignore rename to charts/bitwarden-crd-operator/.helmignore diff --git a/chart/bitwarden-crd-operator/Chart.yaml b/charts/bitwarden-crd-operator/Chart.yaml similarity index 100% rename from chart/bitwarden-crd-operator/Chart.yaml rename to charts/bitwarden-crd-operator/Chart.yaml diff --git a/chart/bitwarden-crd-operator/crds/bitwarden-secrets.yaml b/charts/bitwarden-crd-operator/crds/bitwarden-secrets.yaml similarity index 100% rename from chart/bitwarden-crd-operator/crds/bitwarden-secrets.yaml rename to charts/bitwarden-crd-operator/crds/bitwarden-secrets.yaml diff --git a/chart/bitwarden-crd-operator/templates/NOTES.txt b/charts/bitwarden-crd-operator/templates/NOTES.txt similarity index 100% rename from chart/bitwarden-crd-operator/templates/NOTES.txt rename to charts/bitwarden-crd-operator/templates/NOTES.txt diff --git a/chart/bitwarden-crd-operator/templates/_helpers.tpl b/charts/bitwarden-crd-operator/templates/_helpers.tpl similarity index 100% rename from chart/bitwarden-crd-operator/templates/_helpers.tpl rename to charts/bitwarden-crd-operator/templates/_helpers.tpl diff --git a/chart/bitwarden-crd-operator/templates/clusterrole.yaml b/charts/bitwarden-crd-operator/templates/clusterrole.yaml similarity index 100% rename from chart/bitwarden-crd-operator/templates/clusterrole.yaml rename to charts/bitwarden-crd-operator/templates/clusterrole.yaml diff --git a/chart/bitwarden-crd-operator/templates/deployment.yaml b/charts/bitwarden-crd-operator/templates/deployment.yaml similarity index 100% rename from chart/bitwarden-crd-operator/templates/deployment.yaml rename to charts/bitwarden-crd-operator/templates/deployment.yaml diff --git a/chart/bitwarden-crd-operator/templates/hpa.yaml b/charts/bitwarden-crd-operator/templates/hpa.yaml similarity index 100% rename from chart/bitwarden-crd-operator/templates/hpa.yaml rename to charts/bitwarden-crd-operator/templates/hpa.yaml diff --git a/chart/bitwarden-crd-operator/templates/rolebinding.yaml b/charts/bitwarden-crd-operator/templates/rolebinding.yaml similarity index 100% rename from chart/bitwarden-crd-operator/templates/rolebinding.yaml rename to charts/bitwarden-crd-operator/templates/rolebinding.yaml diff --git a/chart/bitwarden-crd-operator/templates/serviceaccount.yaml b/charts/bitwarden-crd-operator/templates/serviceaccount.yaml similarity index 100% rename from chart/bitwarden-crd-operator/templates/serviceaccount.yaml rename to charts/bitwarden-crd-operator/templates/serviceaccount.yaml diff --git a/chart/bitwarden-crd-operator/values.yaml b/charts/bitwarden-crd-operator/values.yaml similarity index 100% rename from chart/bitwarden-crd-operator/values.yaml rename to charts/bitwarden-crd-operator/values.yaml