This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch publish/helmchart
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git

commit 9347bd4bd2e9533ab5e72f0effb4115682627cf4
Author: kezhenxu94 <[email protected]>
AuthorDate: Sat Feb 11 11:14:07 2023 +0800

    Publish Helm Chart snapshot to ghcr.io
---
 .github/workflows/owasp-dependency-check.yaml      |  4 +-
 .github/workflows/publish-helm-chart.yaml          | 56 ++++++++++++++++++++++
 .../src/main/resources/common.properties           |  8 ++--
 3 files changed, 63 insertions(+), 5 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..3734689923
--- /dev/null
+++ b/.github/workflows/publish-helm-chart.yaml
@@ -0,0 +1,56 @@
+# 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: Cache local Maven repository
+        uses: actions/cache@v3
+        with:
+          path: ~/.m2/repository
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-
+      - 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: |
+          sed -i "s/^version: .*/version: 0.0.0-${{ github.sha }}/" 
dolphinscheduler/Chart.yaml
+          helm dep up dolphinscheduler
+          helm package dolphinscheduler
+          helm push dolphinscheduler-helm-*.tgz oci://${{ env.HUB }}
diff --git a/dolphinscheduler-common/src/main/resources/common.properties 
b/dolphinscheduler-common/src/main/resources/common.properties
index 822168a6f6..f39d14ffeb 100644
--- a/dolphinscheduler-common/src/main/resources/common.properties
+++ b/dolphinscheduler-common/src/main/resources/common.properties
@@ -24,7 +24,7 @@ data.basedir.path=/tmp/dolphinscheduler
 # resource storage type: LOCAL, HDFS, S3, OSS, NONE. LOCAL type is a specific 
type of HDFS with "resource.hdfs.fs.defaultFS = file:///" configuration
 # please notice that LOCAL mode does not support reading and writing in 
distributed mode, which mean you can only use your resource in one machine, 
unless
 # use shared file mount point
-resource.storage.type=LOCAL
+resource.storage.type=S3
 # resource store on HDFS/S3 path, resource file will store to this base path, 
self configuration, please make sure the directory exists on hdfs and have read 
write permissions. "/dolphinscheduler" is recommended
 resource.storage.upload.base.path=/dolphinscheduler
 
@@ -40,11 +40,11 @@ resource.azure.tenant.id=minioadmin
 resource.query.interval=10000
 
 # The AWS access key. if resource.storage.type=S3 or use EMR-Task, This 
configuration is required
-resource.aws.access.key.id=minioadmin
+resource.aws.access.key.id=accessKey123
 # The AWS secret access key. if resource.storage.type=S3 or use EMR-Task, This 
configuration is required
-resource.aws.secret.access.key=minioadmin
+resource.aws.secret.access.key=secretKey123
 # The AWS Region to use. if resource.storage.type=S3 or use EMR-Task, This 
configuration is required
-resource.aws.region=cn-north-1
+resource.aws.region=us-east-1
 # The name of the bucket. You need to create them by yourself. Otherwise, the 
system cannot start. All buckets in Amazon S3 share a single namespace; ensure 
the bucket is given a unique name.
 resource.aws.s3.bucket.name=dolphinscheduler
 # You need to set this parameter when private cloud s3. If S3 uses public 
cloud, you only need to set resource.aws.region or set to the endpoint of a 
public cloud such as S3.cn-north-1.amazonaws.com.cn

Reply via email to