sync helm chart to main when build a helm-chart release (#6177)
Signed-off-by: liujian <54946465+redscholar@users.noreply.github.com> Signed-off-by: joyceliu <joyceliu@yunify.com>
This commit is contained in:
4
.github/workflows/sync-helm-chart.yaml
vendored
4
.github/workflows/sync-helm-chart.yaml
vendored
@@ -7,7 +7,7 @@ on:
|
||||
- 'master'
|
||||
- 'release-*'
|
||||
tags:
|
||||
- 'v*'
|
||||
- 'helm-chart-*'
|
||||
|
||||
jobs:
|
||||
sync-chart:
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
git checkout -b sync/ks-core/${GITHUB_REF#refs/*/} ks/master
|
||||
rm -rf src/test/ks-core
|
||||
cp -r ../kubesphere/config/ks-core src/test/
|
||||
if [[ ${GITHUB_REF#refs/*/} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
if [[ ${GITHUB_REF#refs/*/} =~ ^helm-chart-[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
rm -rf src/main/ks-core
|
||||
cp -r ../kubesphere/config/ks-core src/main/
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user