You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by al...@apache.org on 2022/01/07 10:44:43 UTC

[incubator-inlong] branch master updated: [INLONG-2028][CI] Add support for docker build on GitHub Actions (#2112)

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

aloyszhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new 7e9a7bb  [INLONG-2028][CI] Add support for docker build on GitHub Actions (#2112)
7e9a7bb is described below

commit 7e9a7bb46dda08a0314281ad14fb9fcedfe486bc
Author: Yuanhao Ji <ts...@qq.com>
AuthorDate: Fri Jan 7 18:44:33 2022 +0800

    [INLONG-2028][CI] Add support for docker build on GitHub Actions (#2112)
    
    * [INLONG-2028][CI] Add support for docker build on GitHub Actions
    
    issue: #2028
    
    * [INLONG-2028][CI] Add packaging before building docker
    
    issue: #2028
    
    * [INLONG-2028][CI] Update maven command
    
    issue: #2028
    
    * [INLONG-2028][CI] Set the `CI` environment variable to false
    
    issue: #2028
---
 .github/workflows/ci_build_docker.yml | 52 +++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/.github/workflows/ci_build_docker.yml b/.github/workflows/ci_build_docker.yml
new file mode 100644
index 0000000..d7ff438
--- /dev/null
+++ b/.github/workflows/ci_build_docker.yml
@@ -0,0 +1,52 @@
+#
+# 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: InLong Docker Build
+
+on:
+  push:
+    branches: [ master, 'INLONG-*' ]
+  pull_request:
+    branches: [ master, 'INLONG-*' ]
+
+jobs:
+  build:
+    name: Docker Build
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+
+      - name: Set up JDK
+        uses: actions/setup-java@v2
+        with:
+          java-version: 8
+          distribution: adopt
+
+      - name: Cache Maven packages
+        uses: actions/cache@v2
+        with:
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/inlong
+          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-m2
+
+      - name: Build docker image
+        run: mvn --batch-mode --update-snapshots -e -V clean verify -DskipTests -Pdocker
+        env:
+          CI: false