You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/04/25 09:08:39 UTC

[shardingsphere] branch master updated: Nightly builds cicd (#17089)

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

zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 5765bfe2281 Nightly builds cicd (#17089)
5765bfe2281 is described below

commit 5765bfe22812c231bfacdbf8cb63aa1450ac5ac6
Author: 孙念君 Sun Nianjun <su...@sphere-ex.com>
AuthorDate: Mon Apr 25 17:08:32 2022 +0800

    Nightly builds cicd (#17089)
    
    * Add github action for nightly builds
    
    * Add license for the yaml file
---
 .github/workflows/nightlies-rsync.yml | 54 +++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/.github/workflows/nightlies-rsync.yml b/.github/workflows/nightlies-rsync.yml
new file mode 100644
index 00000000000..c40a7913c56
--- /dev/null
+++ b/.github/workflows/nightlies-rsync.yml
@@ -0,0 +1,54 @@
+#
+# 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.
+#
+
+on:
+  schedule:
+    - cron: '0 3 */1 * *'  # once a day. UTC time
+
+jobs:
+  upload_to_nightlies:
+    if: (github.repository == 'apache/shardingsphere')
+    runs-on: ubuntu-latest
+    timeout-minutes: 60
+    steps:
+      - name: Cache Maven Repos
+        uses: actions/cache@v2
+        with:
+          path: ~/.m2/repository
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-
+      - uses: actions/checkout@v2
+
+      - name: Set up JDK 8
+        uses: actions/setup-java@v1
+        with:
+          java-version: 8
+
+      - name: Build Project
+        run: ./mvnw clean install -Dmaven.javadoc.skip=true -B -Drat.skip=true -Djacoco.skip=true -Dmaven.test.skip=true -T1C -Prelease
+
+      - name: rsync
+        uses: burnett01/rsync-deployments@5.2
+        with:
+          switches: -avzr
+          path: shardingsphere-distribution/shardingsphere-proxy-distribution/target/apache-shardingsphere-*.tar.gz
+          remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/shardingsphere
+          remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
+          remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
+          remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
+          remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}