This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new e368bde7ee Publish Helm Chart snapshot to ghcr.io (#13546)
e368bde7ee is described below
commit e368bde7ee3cd0412ab29e5a59f047137664072e
Author: kezhenxu94 <[email protected]>
AuthorDate: Sat Feb 11 12:40:35 2023 +0800
Publish Helm Chart snapshot to ghcr.io (#13546)
---
.github/workflows/owasp-dependency-check.yaml | 4 +-
.github/workflows/publish-helm-chart.yaml | 50 ++++++++++++++++++++++
.../src/main/resources/common.properties | 2 +-
3 files changed, 54 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/owasp-dependency-check.yaml
b/.github/workflows/owasp-dependency-check.yaml
index 729036da91..5552335b13 100644
--- a/.github/workflows/owasp-dependency-check.yaml
+++ b/.github/workflows/owasp-dependency-check.yaml
@@ -19,6 +19,8 @@ name: OWASP Dependency Check
on:
push:
+ branches:
+ - dev
pull_request:
paths:
- '**/pom.xml'
@@ -45,4 +47,4 @@ jobs:
continue-on-error: true
with:
name: dependency report
- path: target/dependency-check-report.html
\ No newline at end of file
+ path: target/dependency-check-report.html
diff --git a/.github/workflows/publish-helm-chart.yaml
b/.github/workflows/publish-helm-chart.yaml
new file mode 100644
index 0000000000..92bdda867b
--- /dev/null
+++ b/.github/workflows/publish-helm-chart.yaml
@@ -0,0 +1,50 @@
+# 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.
+
+name: publish-helm-chart
+
+on:
+ push:
+ branches:
+ - dev
+
+env:
+ HUB: ghcr.io/apache/dolphinscheduler
+
+jobs:
+ build:
+ if: github.repository == 'apache/dolphinscheduler'
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ packages: write
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@v2
+ - name: Log in to the Container registry
+ uses: docker/[email protected]
+ with:
+ registry: ${{ env.HUB }}
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+ - name: Publish Helm Chart
+ working-directory: deploy/kubernetes
+ run: |
+ VERSION=0.0.0-$(git rev-parse --short HEAD)
+ sed -i "s/^version: .*/version: $VERSION/"
dolphinscheduler/Chart.yaml
+ helm dep up dolphinscheduler
+ helm package dolphinscheduler
+ helm push dolphinscheduler-helm-$VERSION.tgz oci://${{ env.HUB }}
diff --git a/dolphinscheduler-common/src/main/resources/common.properties
b/dolphinscheduler-common/src/main/resources/common.properties
index 822168a6f6..c3a196f41d 100644
--- a/dolphinscheduler-common/src/main/resources/common.properties
+++ b/dolphinscheduler-common/src/main/resources/common.properties
@@ -140,4 +140,4 @@ ml.mlflow.preset_repository_version="main"
appId.collect=log
# The default env list will be load by Shell task, e.g.
/etc/profile,~/.bash_profile
-shell.env_source_list=
\ No newline at end of file
+shell.env_source_list=