You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2020/06/30 01:16:22 UTC
[pulsar-helm-chart] branch master updated: Release Helm Chart 2.6.0
(#21)
This is an automated email from the ASF dual-hosted git repository.
sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new 93d8fd1 Release Helm Chart 2.6.0 (#21)
93d8fd1 is described below
commit 93d8fd19810c290652e223c9c66932c368606182
Author: Sijie Guo <si...@apache.org>
AuthorDate: Mon Jun 29 18:16:16 2020 -0700
Release Helm Chart 2.6.0 (#21)
* Release Helm Chart 2.6.0
---
.ci/release.sh | 37 +++++++++-------------
.github/workflows/release.yml | 4 ++-
.../workflows/{release.yml => verify_release.yml} | 10 +++---
charts/pulsar/Chart.yaml | 2 +-
4 files changed, 25 insertions(+), 28 deletions(-)
diff --git a/.ci/release.sh b/.ci/release.sh
index 0e08c71..50f4817 100755
--- a/.ci/release.sh
+++ b/.ci/release.sh
@@ -64,29 +64,25 @@ function release::update_chart_index() {
}
function release::git_setup() {
- cat <<- EOF > $HOME/.netrc
- machine github.com
- login $GITHUB_ACTOR
- password $GITHUB_TOKEN
- machine api.github.com
- login $GITHUB_ACTOR
- password $GITHUB_TOKEN
-EOF
- chmod 600 $HOME/.netrc
-
- git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
- git config --global user.name "$GITHUB_ACTOR"
+ git config --global user.email "dev@pulsar.apache.org"
+ git config --global user.name "Apache Pulsar Team"
}
function release::publish_charts() {
release::git_setup
- git remote update
- git fetch --all
- git checkout gh-pages
- cp --force ${CHARTS_INDEX}/index.yaml index.yaml
- git add index.yaml
+ git clone https://${GITHUB_TOKEN}@github.com/apache/pulsar
+ cd pulsar
+ git checkout asf-site
+ mkdir -p content/charts
+ cp --force ${CHARTS_INDEX}/index.yaml content/charts/index.yaml
+ git add content/charts/index.yaml
+ ls content/charts
git commit --message="Publish new charts to ${CHARTS_REPO}" --signoff
- git push --set-upstream origin gh-pages
+ if [[ "x${PUBLISH_CHARTS}" == "xtrue" ]]; then
+ git push --set-upstream origin asf-site
+ else
+ git push --dry-run --set-upstream origin asf-site
+ fi
}
# install cr
@@ -116,7 +112,4 @@ done
release::upload_packages
release::update_chart_index
-
-if [[ "x${PUBLISH_CHARTS}" == "xtrue" ]]; then
- release::publish_charts
-fi
+release::publish_charts
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f2e730e..a388d7c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -28,10 +28,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
+ with:
+ token: ${{ secrets.PULSARBOT_TOKEN }}
- name: Install chart
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GITHUB_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
PUBLISH_CHARTS: true
run: |
.ci/release.sh
diff --git a/.github/workflows/release.yml b/.github/workflows/verify_release.yml
similarity index 87%
copy from .github/workflows/release.yml
copy to .github/workflows/verify_release.yml
index f2e730e..57720c4 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/verify_release.yml
@@ -17,11 +17,13 @@
# under the License.
#
-name: Post commit - Publish Pulsar Helm Chart
+name: Precommit - Verify releasing Pulsar Helm Chart
on:
- push:
+ pull_request:
branches:
- - master
+ - '*'
+ paths:
+ - 'charts/pulsar/**'
jobs:
release:
runs-on: ubuntu-latest
@@ -32,6 +34,6 @@ jobs:
- name: Install chart
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- PUBLISH_CHARTS: true
+ PUBLISH_CHARTS: false
run: |
.ci/release.sh
diff --git a/charts/pulsar/Chart.yaml b/charts/pulsar/Chart.yaml
index f2c535e..32d290b 100644
--- a/charts/pulsar/Chart.yaml
+++ b/charts/pulsar/Chart.yaml
@@ -21,7 +21,7 @@ apiVersion: v1
appVersion: "1.0"
description: Apache Pulsar Helm chart for Kubernetes
name: pulsar
-version: 1.0.0
+version: 2.6.0
home: https://pulsar.apache.org
sources:
- https://github.com/apache/pulsar