You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by gy...@apache.org on 2022/03/30 07:48:43 UTC
[flink-kubernetes-operator] branch release-0.1 updated: [release] Add license header to helm repo index file
This is an automated email from the ASF dual-hosted git repository.
gyfora pushed a commit to branch release-0.1
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git
The following commit(s) were added to refs/heads/release-0.1 by this push:
new 439bd41 [release] Add license header to helm repo index file
439bd41 is described below
commit 439bd41b2d93c84553b87b149fdc586a7992a868
Author: Gyula Fora <g_...@apple.com>
AuthorDate: Wed Mar 30 09:18:50 2022 +0200
[release] Add license header to helm repo index file
---
tools/releasing/apache_header.yaml | 17 +++++++++++++++++
tools/releasing/create_source_release.sh | 5 +++++
2 files changed, 22 insertions(+)
diff --git a/tools/releasing/apache_header.yaml b/tools/releasing/apache_header.yaml
new file mode 100644
index 0000000..65b48d4
--- /dev/null
+++ b/tools/releasing/apache_header.yaml
@@ -0,0 +1,17 @@
+################################################################################
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+################################################################################
diff --git a/tools/releasing/create_source_release.sh b/tools/releasing/create_source_release.sh
index b7eff5e..ee00124 100755
--- a/tools/releasing/create_source_release.sh
+++ b/tools/releasing/create_source_release.sh
@@ -86,7 +86,12 @@ perl -pi -e "s#^ tag: .*# tag: ${commit_hash}#" flink-kubernetes-operator-${RE
helm package --app-version ${RELEASE_VERSION} --version ${RELEASE_VERSION} --destination ${RELEASE_DIR} flink-kubernetes-operator-${RELEASE_VERSION}/helm/flink-operator
mv ${RELEASE_DIR}/flink-operator-${RELEASE_VERSION}.tgz ${RELEASE_DIR}/flink-kubernetes-operator-${RELEASE_VERSION}-helm.tgz
+
helm repo index ${RELEASE_DIR}
+# Attach apache header
+mv ${RELEASE_DIR}/index.yaml ${RELEASE_DIR}/index_tmp.yaml
+cp flink-kubernetes-operator-${RELEASE_VERSION}/tools/releasing/apache_header.yaml ${RELEASE_DIR}/index.yaml
+cat ${RELEASE_DIR}/index_tmp.yaml >> ${RELEASE_DIR}/index.yaml && rm ${RELEASE_DIR}/index_tmp.yaml
gpg --armor --detach-sig ${RELEASE_DIR}/flink-kubernetes-operator-${RELEASE_VERSION}-helm.tgz
gpg --armor --detach-sig ${RELEASE_DIR}/index.yaml