You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2020/02/28 08:38:42 UTC

[camel-k] branch master updated: feat(release): prepare for helm chart publication

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

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new 574f7fb  feat(release): prepare for helm chart publication
574f7fb is described below

commit 574f7fba4429767cf47c3fc587ce61813335de86
Author: Nicola Ferraro <ni...@gmail.com>
AuthorDate: Fri Feb 28 09:38:26 2020 +0100

    feat(release): prepare for helm chart publication
---
 {helm => docs}/charts/camel-k-0.1.0.tgz | Bin
 {helm => docs}/charts/index.yaml        |   2 +-
 docs/index.html                         |  12 ++++++++++++
 script/release_helm.sh                  |  15 +++++++++------
 4 files changed, 22 insertions(+), 7 deletions(-)

diff --git a/helm/charts/camel-k-0.1.0.tgz b/docs/charts/camel-k-0.1.0.tgz
similarity index 100%
rename from helm/charts/camel-k-0.1.0.tgz
rename to docs/charts/camel-k-0.1.0.tgz
diff --git a/helm/charts/index.yaml b/docs/charts/index.yaml
similarity index 93%
rename from helm/charts/index.yaml
rename to docs/charts/index.yaml
index 0cdebcf..b9eb394 100644
--- a/helm/charts/index.yaml
+++ b/docs/charts/index.yaml
@@ -24,6 +24,6 @@ entries:
     - https://github.com/apache/camel
     type: application
     urls:
-    - https://camel-k.github.io/helm/charts/camel-k-0.1.0.tgz
+    - https://apache.github.io/camel-k/charts/camel-k-0.1.0.tgz
     version: 0.1.0
 generated: "2020-02-28T08:33:33.500717761+01:00"
diff --git a/docs/index.html b/docs/index.html
new file mode 100644
index 0000000..61a6920
--- /dev/null
+++ b/docs/index.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+	<title>Apache Camel K</title>
+<body>
+	<h1>Apache Camel K</h1>
+	<p>This is a development portal for publishing resources, such as:</p>
+	<ul>
+		<li><a href="charts/index.yaml">Helm Charts</a></li>
+	</ul>
+	<p>If you are looking for the Apache Camel K documentation, go to the <a href="https://camel.apache.org/camel-k/latest">Apache Camel website</a>.</p>
+</body>
diff --git a/script/release_helm.sh b/script/release_helm.sh
index 61cf9ec..95f94e9 100755
--- a/script/release_helm.sh
+++ b/script/release_helm.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
@@ -15,13 +15,16 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+set -e
+
 location=$(dirname $0)
-rootdir=$location/../
+rootdir=$(realpath $location/..)
+targetdir=$rootdir/docs/charts
 
-cd $rootdir/helm
+mkdir -p $targetdir
 
-mkdir -p charts
+cd $rootdir/helm
 
 helm package ./camel-k
-mv camel-k-*.tgz charts
-helm repo index charts --url https://camel-k.github.io/helm/charts
+mv camel-k-*.tgz $targetdir/
+helm repo index $targetdir --url https://apache.github.io/camel-k/charts/