Skip to content

Commit

Permalink
chore(ci): support chart release in action (#643)
Browse files Browse the repository at this point in the history
Signed-off-by: wangxye <[email protected]>
  • Loading branch information
wangxye authored Nov 15, 2023
1 parent c1697f2 commit f143c28
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release Charts

on:
push:
branches:
- main

jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3

- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: distribution/helm/charts
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@


apiVersion: v2
name: rocketmq-k8s-helm
description: A Helm chart for Kubernetes
name: automq-for-rocketmq
description: A Helm chart for automq-for-rocketmq

# A chart can be either an 'application' or a 'library' chart.
#
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion distribution/helm/deploy-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ helm install mysql bitnami/mysql -f deploy/mysql.yaml --namespace $NAMESPACE
kubectl rollout status --watch --timeout=120s statefulset/mysql --namespace $NAMESPACE

# deploy automq-for-rocketmq
helm install automq-for-rocketmq . -f deploy/helm_sample_values.yaml --set broker.image.repository=$ROCKETMQ_REPO --set broker.image.tag=$ROCKETMQ_VERSION --namespace $NAMESPACE
helm install automq-for-rocketmq ./charts/automq-for-rocketmq -f deploy/helm_sample_values.yaml --set broker.image.repository=$ROCKETMQ_REPO --set broker.image.tag=$ROCKETMQ_VERSION --namespace $NAMESPACE

kubectl rollout status --watch --timeout=360s statefulset/automq-for-rocketmq-broker --namespace $NAMESPACE

0 comments on commit f143c28

Please sign in to comment.