You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wi...@apache.org on 2020/06/27 08:59:42 UTC

[couchdb-helm] 06/43: Maintain chart repo in master branch

This is an automated email from the ASF dual-hosted git repository.

willholley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-helm.git

commit 930c909172470e39ae7bb9efc9abaac35176cea3
Author: Will Holley <wi...@gmail.com>
AuthorDate: Tue Oct 22 14:02:07 2019 +0100

    Maintain chart repo in master branch
    
    Previously we used a branch gh-pages to serve the Helm repository
    but I think it's simpler to just use a subdirectory instead.
    
    This commit adds a /docs subdirectory which contains the static
    helm repository content. GitHub pages can then be updated to
    point to this.
---
 .github/PULL_REQUEST_TEMPLATE.md |   1 +
 Makefile                         |  12 ++----------
 README.md                        |  13 ++-----------
 docs/couchdb-2.2.0.tgz           | Bin 0 -> 7337 bytes
 docs/index.yaml                  |  25 +++++++++++++++++++++++++
 5 files changed, 30 insertions(+), 21 deletions(-)

diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index fd7bedc..a1db437 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -33,3 +33,4 @@ Please make sure you test your changes before you push them.
 - [ ] Chart Version bumped
 - [ ] e2e tests pass
 - [ ] Variables are documented in the README.md
+- [ ] Chart tgz added to /docs and index updated
diff --git a/Makefile b/Makefile
index 6963b96..bf58f7e 100644
--- a/Makefile
+++ b/Makefile
@@ -16,18 +16,10 @@ SHELL=/bin/bash
 lint:
 	@helm lint couchdb
 
-.PHONY: package
-package: lint
-	@helm package couchdb
-
 .PHONY: publish
-publish:
-	@git checkout gh-pages
-	@git checkout -b gh-pages-update
+publish: lint
+	@helm package couchdb -d docs
 	@helm repo index docs --url https://apache.github.io/couchdb-helm
-	@git add -i
-	@git commit
-	@echo "To complete the publish step, push the branch to your GitHub remote and create a PR against gh-pages"
 
 # Run end to end tests using KinD
 .PHONY: test
diff --git a/README.md b/README.md
index b17607b..a70af73 100644
--- a/README.md
+++ b/README.md
@@ -14,17 +14,8 @@ deploy using the default options and Helm.
 
 ## Releasing
 
-The Helm chart is published to a Helm epository hosted by GitHub pages. This is maintained in the `gh-pages` branch of this repository.
-
-To publish a new release, perform the following steps:
-
- 1. Create a Helm bundle (*.tgz) for the current couchdb chart
- 2. Switch to the `gh-pages` branch
- 3. Run `helm repo index docs --url https://apache.github.io/couchdb-helm` to generate the Helm repository index
- 4. `git add` the tgz bundle and the `index.yaml` files. Do not delete the old chart bundles!
- 5. Commit the changes and create a PR to `gh-pages`.
-
-`make publish` automates these steps for you.
+Chart versions are immutable. On every version change, `make publish` should be
+run to create a new chart bundle and update the repostory metadata.
 
 ## Feedback / Issues / Contributing
 
diff --git a/docs/couchdb-2.2.0.tgz b/docs/couchdb-2.2.0.tgz
new file mode 100644
index 0000000..f58cc55
Binary files /dev/null and b/docs/couchdb-2.2.0.tgz differ
diff --git a/docs/index.yaml b/docs/index.yaml
new file mode 100644
index 0000000..6be4b54
--- /dev/null
+++ b/docs/index.yaml
@@ -0,0 +1,25 @@
+apiVersion: v1
+entries:
+  couchdb:
+  - apiVersion: v1
+    appVersion: 2.3.1
+    created: 2019-10-22T14:09:08.422421+01:00
+    description: A database featuring seamless multi-master sync, that scales from
+      big data to mobile, with an intuitive HTTP/JSON API and designed for reliability.
+    digest: d4ec1447c437f26418db46de4b7fe7be928f7341b62915ef263350578c95cf12
+    home: https://couchdb.apache.org/
+    icon: http://couchdb.apache.org/CouchDB-visual-identity/logo/CouchDB-couch-symbol.svg
+    keywords:
+    - couchdb
+    - database
+    - nosql
+    maintainers:
+    - email: kocolosk@apache.org
+      name: kocolosk
+    name: couchdb
+    sources:
+    - https://github.com/apache/couchdb-docker
+    urls:
+    - https://apache.github.io/couchdb-helm/couchdb-2.2.0.tgz
+    version: 2.2.0
+generated: 2019-10-22T14:09:08.421343+01:00