From 13b91136be546930f0ee86850dee25e6b6f0720a Mon Sep 17 00:00:00 2001 From: r g Date: Thu, 6 Aug 2020 00:00:56 +0200 Subject: [PATCH 1/8] Creating release builds --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9096e1f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: Release Charts + +on: + push: + branches: + - master + - feature/release-build + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + + - 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-rc.1 + env: + CR_TOKEN: "${{ secrets.CR_TOKEN }}" \ No newline at end of file From 0a9e5fbbd28f4f54ea45793a25e9e5f975649150 Mon Sep 17 00:00:00 2001 From: r g Date: Thu, 6 Aug 2020 00:15:59 +0200 Subject: [PATCH 2/8] Set chart dir to current directory --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9096e1f..e366528 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,5 +20,7 @@ jobs: - name: Run chart-releaser uses: helm/chart-releaser-action@v1.0.0-rc.1 + with: + charts_dir: . env: CR_TOKEN: "${{ secrets.CR_TOKEN }}" \ No newline at end of file From 93803632d980df11b055fe9d46b4c50b0a978e36 Mon Sep 17 00:00:00 2001 From: r g Date: Thu, 6 Aug 2020 00:20:00 +0200 Subject: [PATCH 3/8] Move chart into subdirectory --- .github/workflows/release.yml | 2 +- .helmignore => chart/bitwarden-k8s/.helmignore | 0 Chart.yaml => chart/bitwarden-k8s/Chart.yaml | 0 {templates => chart/bitwarden-k8s/templates}/NOTES.txt | 0 {templates => chart/bitwarden-k8s/templates}/_helpers.tpl | 0 {templates => chart/bitwarden-k8s/templates}/deployment.yaml | 0 {templates => chart/bitwarden-k8s/templates}/ingress.yaml | 0 .../bitwarden-k8s/templates}/persistent-volume-claim.yaml | 0 {templates => chart/bitwarden-k8s/templates}/service.yaml | 0 values.yaml => chart/bitwarden-k8s/values.yaml | 0 10 files changed, 1 insertion(+), 1 deletion(-) rename .helmignore => chart/bitwarden-k8s/.helmignore (100%) rename Chart.yaml => chart/bitwarden-k8s/Chart.yaml (100%) rename {templates => chart/bitwarden-k8s/templates}/NOTES.txt (100%) rename {templates => chart/bitwarden-k8s/templates}/_helpers.tpl (100%) rename {templates => chart/bitwarden-k8s/templates}/deployment.yaml (100%) rename {templates => chart/bitwarden-k8s/templates}/ingress.yaml (100%) rename {templates => chart/bitwarden-k8s/templates}/persistent-volume-claim.yaml (100%) rename {templates => chart/bitwarden-k8s/templates}/service.yaml (100%) rename values.yaml => chart/bitwarden-k8s/values.yaml (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e366528..ee3818b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,6 +21,6 @@ jobs: - name: Run chart-releaser uses: helm/chart-releaser-action@v1.0.0-rc.1 with: - charts_dir: . + charts_dir: chart env: CR_TOKEN: "${{ secrets.CR_TOKEN }}" \ No newline at end of file diff --git a/.helmignore b/chart/bitwarden-k8s/.helmignore similarity index 100% rename from .helmignore rename to chart/bitwarden-k8s/.helmignore diff --git a/Chart.yaml b/chart/bitwarden-k8s/Chart.yaml similarity index 100% rename from Chart.yaml rename to chart/bitwarden-k8s/Chart.yaml diff --git a/templates/NOTES.txt b/chart/bitwarden-k8s/templates/NOTES.txt similarity index 100% rename from templates/NOTES.txt rename to chart/bitwarden-k8s/templates/NOTES.txt diff --git a/templates/_helpers.tpl b/chart/bitwarden-k8s/templates/_helpers.tpl similarity index 100% rename from templates/_helpers.tpl rename to chart/bitwarden-k8s/templates/_helpers.tpl diff --git a/templates/deployment.yaml b/chart/bitwarden-k8s/templates/deployment.yaml similarity index 100% rename from templates/deployment.yaml rename to chart/bitwarden-k8s/templates/deployment.yaml diff --git a/templates/ingress.yaml b/chart/bitwarden-k8s/templates/ingress.yaml similarity index 100% rename from templates/ingress.yaml rename to chart/bitwarden-k8s/templates/ingress.yaml diff --git a/templates/persistent-volume-claim.yaml b/chart/bitwarden-k8s/templates/persistent-volume-claim.yaml similarity index 100% rename from templates/persistent-volume-claim.yaml rename to chart/bitwarden-k8s/templates/persistent-volume-claim.yaml diff --git a/templates/service.yaml b/chart/bitwarden-k8s/templates/service.yaml similarity index 100% rename from templates/service.yaml rename to chart/bitwarden-k8s/templates/service.yaml diff --git a/values.yaml b/chart/bitwarden-k8s/values.yaml similarity index 100% rename from values.yaml rename to chart/bitwarden-k8s/values.yaml From c3d1a3a75de43dd5d94958cdab96094dee77e80b Mon Sep 17 00:00:00 2001 From: r g Date: Thu, 6 Aug 2020 00:22:54 +0200 Subject: [PATCH 4/8] Update README to match new paths --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3cca4ab..291d479 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Helm chart for deploying [dani-garcia/bitwarden_rs](https://github.com/dani-garc ```console $ git clone https://github.com/cdwv/bitwarden-k8s $ cd bitwarden-k8s -$ helm install . +$ helm install ./chart/bitwarden-k8s ``` @@ -15,7 +15,7 @@ $ helm install . To install the chart with the release name `my-release`: ```console -$ helm install --name my-release . +$ helm install --name my-release ./chart/bitwarden-k8s ``` ## Uninstalling the Chart From 7f4d1a03cdbcc4da6fe2a7319fa2274ff30f53fc Mon Sep 17 00:00:00 2001 From: r g Date: Thu, 6 Aug 2020 00:24:09 +0200 Subject: [PATCH 5/8] Dont use feature branch for tests --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee3818b..fcb6279 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,6 @@ on: push: branches: - master - - feature/release-build jobs: release: From 046a27038fd2e723d677cd6e0e593936a1e5c567 Mon Sep 17 00:00:00 2001 From: r g Date: Thu, 6 Aug 2020 00:33:34 +0200 Subject: [PATCH 6/8] Update readme to suggest using repo --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 291d479..a86244f 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,13 @@ Helm chart for deploying [dani-garcia/bitwarden_rs](https://github.com/dani-garc ## TL;DR; +```console +$ helm repo add bitwarden https://cdwv.github.io/bitwarden-k8s/ +$ helm install bitwarden/bitwarden-k8s +``` + +OR + ```console $ git clone https://github.com/cdwv/bitwarden-k8s $ cd bitwarden-k8s @@ -15,7 +22,7 @@ $ helm install ./chart/bitwarden-k8s To install the chart with the release name `my-release`: ```console -$ helm install --name my-release ./chart/bitwarden-k8s +$ helm install --name my-release bitwarden/bitwarden-k8s ``` ## Uninstalling the Chart From 49219b48be8b4034b2daf8b9e4c12ee42e5ccd68 Mon Sep 17 00:00:00 2001 From: rgembalik Date: Thu, 10 Sep 2020 11:19:27 +0200 Subject: [PATCH 7/8] Update .github/workflows/release.yml Add a new line after release.yml pipeline --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fcb6279..e4da676 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,4 +22,5 @@ jobs: with: charts_dir: chart env: - CR_TOKEN: "${{ secrets.CR_TOKEN }}" \ No newline at end of file + CR_TOKEN: "${{ secrets.CR_TOKEN }}" + From 07881f06da39e739798edf19e932fb3ceae0a694 Mon Sep 17 00:00:00 2001 From: rgembalik Date: Thu, 10 Sep 2020 11:20:49 +0200 Subject: [PATCH 8/8] Update .github/workflows/release.yml Update chart releaser action --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e4da676..756216b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - name: Run chart-releaser - uses: helm/chart-releaser-action@v1.0.0-rc.1 + uses: helm/chart-releaser-action@v1.0.0 with: charts_dir: chart env: