You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ca...@apache.org on 2023/05/29 01:58:16 UTC
[linkis] 01/02: remove action tmp
This is an automated email from the ASF dual-hosted git repository.
casion pushed a commit to branch dev-1.4.0-integration-test
in repository https://gitbox.apache.org/repos/asf/linkis.git
commit 61211837d3702be65b413a91663f05bcdc9250d5
Author: casionone <ca...@gmail.com>
AuthorDate: Mon May 29 09:51:36 2023 +0800
remove action tmp
---
.github/workflows/auto-comment.yml | 55 ------------------
.github/workflows/auto-format-pr.yaml | 69 -----------------------
.github/workflows/build-backend.yml | 93 -------------------------------
.github/workflows/build-frontend.yml | 53 ------------------
.github/workflows/check-code-format.yml | 35 ------------
.github/workflows/check-license.yml | 42 --------------
.github/workflows/check-sql-script.yml | 50 -----------------
.github/workflows/codeql-analysis.yml | 66 ----------------------
.github/workflows/dead-link-checker.yaml | 35 ------------
.github/workflows/dlc.json | 19 -------
.github/workflows/integration-test.yml | 2 +-
.github/workflows/integration-test2.yml | 3 +-
.github/workflows/publish-docker.yaml | 95 --------------------------------
.github/workflows/publish-snapshot.yml | 56 -------------------
14 files changed, 3 insertions(+), 670 deletions(-)
diff --git a/.github/workflows/auto-comment.yml b/.github/workflows/auto-comment.yml
deleted file mode 100644
index aa196e884..000000000
--- a/.github/workflows/auto-comment.yml
+++ /dev/null
@@ -1,55 +0,0 @@
-# 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: Create Comment
-
-on:
- issues:
- types: [opened]
-
-jobs:
- create-comment:
- runs-on: ubuntu-latest
- steps:
- - name: Create comment
- uses: actions-cool/issues-helper@v3
- with:
- actions: 'create-comment'
- token: ${{ secrets.GITHUB_TOKEN }}
- issue-number: ${{ github.event.issue.number }}
- body: |
- ## :blush: Welcome to the Apache Linkis community!!
- We are glad that you are contributing by opening this issue.
-
- Please make sure to include all the relevant context.
- We will be here shortly.
-
- If you are interested in contributing to our website project, please let us know!
- You can check out our contributing guide on
- :point_right: [How to Participate in Project Contribution](https://linkis.apache.org/community/how-to-contribute).
-
-
- ### Community
-
- |WeChat Assistant|WeChat Public Account|
- |-|-|
- |<img src="https://linkis.apache.org/Images/wedatasphere_contact_01.png" width="128"/>|<img src="https://linkis.apache.org/Images/gzh_01.png" width="128"/>|
-
-
- ### Mailing Lists
- |Name|Description|Subscribe|Unsubscribe|Archive|
- |:-----|:--------|:------|:-------|:-----|
- | [dev@linkis.apache.org](mailto:dev@linkis.apache.org) | community activity information | [subscribe](mailto:dev-subscribe@linkis.apache.org) | [unsubscribe](mailto:dev-unsubscribe@linkis.apache.org) | [archive](http://mail-archives.apache.org/mod_mbox/linkis-dev) |
diff --git a/.github/workflows/auto-format-pr.yaml b/.github/workflows/auto-format-pr.yaml
deleted file mode 100644
index 301d91c76..000000000
--- a/.github/workflows/auto-format-pr.yaml
+++ /dev/null
@@ -1,69 +0,0 @@
-#
-# 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: Create Code Format Apply PullRequest
-
-on:
- pull_request:
- branches: [dev,dev-*]
- types: [closed]
-
-jobs:
- auto-code-format:
- if: ${{ startsWith(github.repository, 'apache/') }}
-
- runs-on: ubuntu-latest
- env:
- BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
- SHA: ${{ github.sha }}
-
- steps:
-
- - name: Checkout
- uses: actions/checkout@v3
- if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
-
- - name: Set up JDK 8
- uses: actions/setup-java@v2
- with:
- java-version: '8'
- distribution: 'adopt'
-
- - name: Code Format Apply
- run:
- ./mvnw spotless:apply
-
- - name: Create Pull Request
- uses: peter-evans/create-pull-request@v4.1.1
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- branch: ${{ env.BRANCH_NAME }}-${{ env.SHA }}
- base: ${{ env.BRANCH_NAME }}
- commit-message: code format apply
- committer: GitHub <no...@github.com>
- author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
- signoff: false
- delete-branch: true
-
- title: '[Code] Code format apply'
- body: |
- ## Code format apply
- - run the result of mvn spotless:apply
-
- labels: |
- code format
- automated pr
diff --git a/.github/workflows/build-backend.yml b/.github/workflows/build-backend.yml
deleted file mode 100644
index f881f9251..000000000
--- a/.github/workflows/build-backend.yml
+++ /dev/null
@@ -1,93 +0,0 @@
-#
-# 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: Build Backend
-
-on: [push, pull_request]
-
-env:
- MAVEN_OPTS: -Dmaven.resolver.transport=wagon -Dmaven.wagon.httpconnectionManager.ttlSeconds=30
-
-jobs:
- build-backend:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- spark: [2.4, 3.2]
- hadoop: [2.7, 3.3]
- steps:
- - name: Checkout
- uses: actions/checkout@v3
- - name: Set up JDK 8
- uses: actions/setup-java@v3
- with:
- distribution: 'temurin'
- java-version: 8
- cache: maven
- - if: ${{matrix.spark == '2.4' && matrix.hadoop == '2.7'}}
- name: build spark ${{matrix.spark}} and hadoop ${{matrix.hadoop}}
- run:
- ./mvnw clean package -Pspark-${{matrix.spark}} -Phadoop-${{matrix.hadoop}} -Dmaven.test.skip=true
- - if: ${{matrix.spark == '3.2' && matrix.hadoop == '3.3'}}
- name: build spark ${{matrix.spark}} and hadoop ${{matrix.hadoop}}
- run:
- ./mvnw clean package
- - if: ${{matrix.spark == '3.2' && matrix.hadoop == '2.7'}}
- name: build spark ${{matrix.spark}} and hadoop ${{matrix.hadoop}}
- run:
- ./mvnw clean package -Phadoop-${{matrix.hadoop}} -Dmaven.test.skip=true
-
- - if: ${{matrix.spark == '2.4' && matrix.hadoop == '3.3'}}
- name: build spark ${{matrix.spark}} and hadoop ${{matrix.hadoop}}
- run:
- ./mvnw clean package -Pspark-${{matrix.spark}} -Dmaven.test.skip=true
-# - name: Upload coverage to Codecov
-# uses: codecov/codecov-action@v3.0.0
-# with:
-# token: ${{ secrets.CODECOV_TOKEN }}
- third-party-dependencies-check:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout source
- uses: actions/checkout@v3
- - name: Set up JDK 8
- uses: actions/setup-java@v3
- with:
- distribution: 'temurin'
- java-version: 8
- cache: maven
- - name: mvn install
- run:
- #pom.xml also introduce linkis related jar,so run mvn install in first time
- ./mvnw install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
- - name: mvn dependency:copy-dependencies
- run:
- ./mvnw dependency:copy-dependencies -DexcludeGroupIds=org.apache.linkis -DincludeScope=runtime -DoutputDirectory=${{ github.workspace }}/current_dependencies
- - name: generate current_dependencies.txt
- run: |
- ls ${{ github.workspace }}/current_dependencies | sort > ~/current_dependencies.txt
- cat ~/current_dependencies.txt
- - name: check third dependencies
- run: |
- #by using commond join ,to check whether there are new third-party dependencies,compared with file(tool/dependencies/known-dependencies.txt)
- sort ${{ github.workspace }}/tool/dependencies/known-dependencies.txt > ~/known-dependencies.txt
- join -t : -o 1.1 2.1 -a2 ~/known-dependencies.txt ~/current_dependencies.txt > ~/result.txt
- #print new third-party dependencies name if it exists
- awk -F ":" '{if($1=="")print $2" is not in file known-dependencies.txt!\n You can refer to this guide to repair it(你可以参考这个指引进行修复):https://linkis.apache.org/zh-CN/docs/latest/development/development-specification/license"}' ~/result.txt
- result=`awk -F ":" '{if($1=="")print $2}' ~/result.txt |wc -l`
- #if has new third-party,the Action will fail
- if [[ $result == 0 ]];then echo "All third dependencies is known!" ;else exit 1;fi
\ No newline at end of file
diff --git a/.github/workflows/build-frontend.yml b/.github/workflows/build-frontend.yml
deleted file mode 100644
index a84a805d4..000000000
--- a/.github/workflows/build-frontend.yml
+++ /dev/null
@@ -1,53 +0,0 @@
-#
-# 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: Build Frontend
-
-on: [push, pull_request]
-
-
-jobs:
- build-frontend:
- runs-on: ubuntu-latest
-
- strategy:
- matrix:
- node-version: [16]
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
-
- steps:
- - uses: actions/checkout@v2
- with:
- submodules: true
-
- - uses: actions/cache@v2
- with:
- path: ~/.npm
- key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- restore-keys: |
- ${{ runner.os }}-node-
-
- - name: Set Up NodeJS ${{ matrix.node-version }}
- uses: actions/setup-node@v2-beta
- with:
- node-version: ${{ matrix.node-version }}
-
- - name: Build frontend by node.js
- run: |
- cd linkis-web
- npm install
- npm run build
diff --git a/.github/workflows/check-code-format.yml b/.github/workflows/check-code-format.yml
deleted file mode 100644
index 0323eb980..000000000
--- a/.github/workflows/check-code-format.yml
+++ /dev/null
@@ -1,35 +0,0 @@
-# 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: Code Format Check
-
-on: [push, pull_request]
-
-jobs:
- spotless-check:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout source
- uses: actions/checkout@v2
- - name: Set up JDK 8
- uses: actions/setup-java@v2
- with:
- java-version: '8'
- distribution: 'adopt'
- - name: Code format check
- run:
- ./mvnw spotless:check
diff --git a/.github/workflows/check-license.yml b/.github/workflows/check-license.yml
deleted file mode 100644
index 3c79607dc..000000000
--- a/.github/workflows/check-license.yml
+++ /dev/null
@@ -1,42 +0,0 @@
-# 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: License Check
-
-on: [push, pull_request]
-
-jobs:
- apache-rat-check:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout source
- uses: actions/checkout@v2
- - name: Set up JDK 8
- uses: actions/setup-java@v2
- with:
- java-version: '8'
- distribution: 'adopt'
- - name: License check with Maven
- run: |
- rat_file=`mvn apache-rat:check | { grep -oe "\\S\\+/rat.txt" || true; }`
- echo "rat_file=$rat_file"
- if [[ -n "$rat_file" ]];then echo "check error!" && cat $rat_file && exit 123;else echo "check success!" ;fi
- - name: Upload the report
- uses: actions/upload-artifact@v2
- with:
- name: license-check-report
- path: "**/target/rat.txt"
diff --git a/.github/workflows/check-sql-script.yml b/.github/workflows/check-sql-script.yml
deleted file mode 100644
index ec965372b..000000000
--- a/.github/workflows/check-sql-script.yml
+++ /dev/null
@@ -1,50 +0,0 @@
-# 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: Sql Script Check
-
-on: [push, pull_request]
-
-jobs:
- sql-check:
- runs-on: ubuntu-latest
- services:
- mysql:
- image: mysql:5.7
- env:
- MYSQL_ROOT_PASSWORD: password
- ports:
- - 32574:3306
- options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
- steps:
- - name: Checkout source
- uses: actions/checkout@v2
-
- - name: Verify linkis init sql
- run: |
- sudo apt-get install -y mysql-client
-
- config="--host 127.0.0.1 --port 32574 -uroot -ppassword --default-character-set=utf8"
- MYSQL_DB=linkis_test
-
- mysql --host 127.0.0.1 --port 32574 -uroot -ppassword -e "SHOW DATABASES"
- mysql $config -e "CREATE DATABASE IF NOT EXISTS $MYSQL_DB DEFAULT CHARSET utf8 COLLATE utf8_general_ci;"
- mysql $config -D$MYSQL_DB -e "source ./linkis-dist/package/db/linkis_ddl.sql"
- mysql $config -D$MYSQL_DB -e "source ./linkis-dist/package/db/linkis_dml.sql"
- mysql $config -D$MYSQL_DB -e "show tables"
-
-
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
deleted file mode 100644
index f5be6ff8a..000000000
--- a/.github/workflows/codeql-analysis.yml
+++ /dev/null
@@ -1,66 +0,0 @@
-# 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: CodeQL Analysis
-
-
-on:
- pull_request:
- branches: [dev,dev-*]
- push:
- branches: [dev,dev-*]
-
-jobs:
- analyze:
- name: Code Analyze
- runs-on: ubuntu-latest
-# if: (github.repository == 'apache/linkis')
- strategy:
- fail-fast: false
- matrix:
- language: ['java', 'javascript', 'python']
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v2
- with:
- submodules: true
- - name: Set up JDK 1.8
- uses: actions/setup-java@v1
- with:
- java-version: 1.8
-
- - name: Cache local Maven repository
- uses: actions/cache@v2
- with:
- path: ~/.m2/repository
- key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- restore-keys: |
- ${{ runner.os }}-linkis-maven-
-
-
- - name: Initialize CodeQL
- uses: github/codeql-action/init@v2
- with:
- languages: ${{ matrix.language }}
-
-# - name: Autobuild
-# uses: github/codeql-action/autobuild@v2
- - name: Build
- run:
- ./mvnw clean package -Dmaven.test.skip=true
-
- - name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v2
\ No newline at end of file
diff --git a/.github/workflows/dead-link-checker.yaml b/.github/workflows/dead-link-checker.yaml
deleted file mode 100644
index 98aa19ab5..000000000
--- a/.github/workflows/dead-link-checker.yaml
+++ /dev/null
@@ -1,35 +0,0 @@
-# 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: Dead Link Check
-
-on: [push, pull_request]
-
-jobs:
- dead-links-check:
- runs-on: ubuntu-latest
- timeout-minutes: 30
- if: (github.repository == 'apache/linkis')
- steps:
- - uses: actions/checkout@v3
- - uses: gaurav-nelson/github-action-markdown-link-check@v1
- with:
- use-quiet-mode: 'no'
- use-verbose-mode: 'yes'
- folder-path: '../'
- config-file: '.github/workflows/dlc.json'
diff --git a/.github/workflows/dlc.json b/.github/workflows/dlc.json
deleted file mode 100644
index 8c6e04fe7..000000000
--- a/.github/workflows/dlc.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "ignorePatterns": [
- {
- "pattern": "^http://localhost"
- },
- {
- "pattern": "^http://127.0.0.1"
- }
- ],
- "timeout": "10s",
- "retryOn429": true,
- "retryCount": 10,
- "fallbackRetryDelay": "1000s",
- "aliveStatusCodes": [
- 200,
- 401,
- 403
- ]
-}
diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml
index 6255f7506..aff3c071f 100644
--- a/.github/workflows/integration-test.yml
+++ b/.github/workflows/integration-test.yml
@@ -36,7 +36,7 @@ env:
KIND_CONFIG_PATH: './linkis-dist/helm/scripts/resources/kind-cluster.yaml'
KIND_CLUSTER_NAME: 'test-helm'
jobs:
- publish-docker:
+ integration-test:
runs-on: ubuntu-latest
strategy:
matrix:
diff --git a/.github/workflows/integration-test2.yml b/.github/workflows/integration-test2.yml
index 156a65677..13c96e3f9 100644
--- a/.github/workflows/integration-test2.yml
+++ b/.github/workflows/integration-test2.yml
@@ -36,7 +36,7 @@ env:
KIND_CONFIG_PATH: './linkis-dist/helm/scripts/resources/kind-cluster.yaml'
KIND_CLUSTER_NAME: 'test-helm'
jobs:
- publish-docker:
+ integration-test:
runs-on: ubuntu-latest
strategy:
matrix:
@@ -125,6 +125,7 @@ jobs:
bash ./linkis-dist/helm/scripts/install-mysql.sh true\
&& bash ./linkis-dist/helm/scripts/install-ldh.sh true \
&& bash ./linkis-dist/helm/scripts/install-charts-with-ldh.sh linkis linkis-demo true
+ #等待服务启动成功
n=0
while (($n<20))
do
diff --git a/.github/workflows/publish-docker.yaml b/.github/workflows/publish-docker.yaml
deleted file mode 100644
index 11c8fcc6c..000000000
--- a/.github/workflows/publish-docker.yaml
+++ /dev/null
@@ -1,95 +0,0 @@
-#
-# 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 Docker
-on:
- push:
- branches:
- - dev-1.4.0
-jobs:
- publish-docker:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- node-version: [16.0.0]
- timeout-minutes: 90
- env:
- TAG: ${{ github.sha }}
- SKIP_TEST: true
- HUB: ghcr.io/apache/linkis
- LINKIS_VERSION: 1.4.0-SNAPSHOT
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- - name: Set up JDK 8
- uses: actions/setup-java@v2
- with:
- distribution: 'adopt'
- java-version: 8
- - name: Cache local Maven repository
- uses: actions/cache@v2
- with:
- path: ~/.m2/repository
- key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- restore-keys: |
- ${{ runner.os }}-maven-
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v2
- with:
- node-version: ${{ matrix.node-version }}
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v1
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v1
- - name: Build frontend by node.js
- run: |
- cd linkis-web
- sed -i "/VUE_APP_MN_CONFIG_PREFIX/d" .env
- npm install
- npm run build
-
- - name: Build backend by maven
- run: |
- ./mvnw install -Pdocker -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -Dlinkis.build.web=true -Dlinkis.build.ldh=true
- - name: Log in to the Container registry
- uses: docker/login-action@v1.10.0
- with:
- registry: ${{ env.HUB }}
- username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
- - name: Push Docker Image
- env:
- DOCKER_VERSION: ${{ github.ref_name }}-${{ github.sha }}
- run: |
- docker images
- docker tag linkis:${{ env.LINKIS_VERSION }} ${{ env.HUB }}/linkis:${{ env.DOCKER_VERSION }}
- docker push ${{ env.HUB }}/linkis:${{ env.DOCKER_VERSION }}
-
- docker tag linkis:${{ env.LINKIS_VERSION }} ${{ env.HUB }}/linkis:latest
- docker push ${{ env.HUB }}/linkis:latest
-
- docker tag linkis-web:${{ env.LINKIS_VERSION }} ${{ env.HUB }}/linkis-web:${{ env.DOCKER_VERSION }}
- docker push ${{ env.HUB }}/linkis-web:${{ env.DOCKER_VERSION }}
-
- docker tag linkis-web:${{ env.LINKIS_VERSION }} ${{ env.HUB }}/linkis-web:latest
- docker push ${{ env.HUB }}/linkis-web:latest
-
- docker tag linkis-ldh:${{ env.LINKIS_VERSION }} ${{ env.HUB }}/linkis-ldh:${{ env.DOCKER_VERSION }}
- docker push ${{ env.HUB }}/linkis-ldh:${{ env.DOCKER_VERSION }}
-
- docker tag linkis-ldh:${{ env.LINKIS_VERSION }} ${{ env.HUB }}/linkis-ldh:latest
- docker push ${{ env.HUB }}/linkis-ldh:latest
diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml
deleted file mode 100644
index 8bb65c90f..000000000
--- a/.github/workflows/publish-snapshot.yml
+++ /dev/null
@@ -1,56 +0,0 @@
-#
-# 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 Snapshot
-
-on:
- schedule:
- - cron: '0 0 * * *'
-
-jobs:
- publish-snapshot:
- if: ${{ startsWith(github.repository, 'apache/') }}
- runs-on: ubuntu-latest
- strategy:
- fail-fast: false
- matrix:
- branch:
- - dev-1.4.0
- steps:
- - name: Checkout repository
- uses: actions/checkout@v2
- with:
- ref: ${{ matrix.branch }}
- - name: Setup JDK 8
- uses: actions/setup-java@v2
- with:
- distribution: 'adopt'
- java-version: 8
-
- - name: Get Version
- run: |
- BRANCE="${{ matrix.branch }}"
- echo "::set-output name=version::${BRANCE#*-}-SNAPSHOT"
- id: get_version
-
- - name: Publish snapshot - ${{ matrix.branch }}
- env:
- ASF_USERNAME: ${{ secrets.NEXUS_USER }}
- ASF_PASSWORD: ${{ secrets.NEXUS_PW }}
- run: |
- ./mvnw versions:set -Drevision={{steps.get_version.outputs.version}} -DgenerateBackupPoms=false
- ./mvnw deploy -s ./.github/asf-settings.xml -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -DretryFailedDeploymentCount=10
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org